Entity « document « Java XML Q&A

Home
Java XML Q&A
1.convert
2.Development
3.document
4.dom
5.dom4j
6.dtd
7.element
8.jaxb
9.jaxp
10.jdom
11.jsoup
12.namespace
13.Node
14.parse
15.parser
16.pdf
17.sax
18.schema
19.stax
20.tag
21.transform
22.Validation
23.xalan
24.xmlbeans
25.xpath
26.xsd
27.xslt
28.xstream
Java XML Q&A » document » Entity 

1. How to generate an *exact* copy of an XML document with resolved entities    stackoverflow.com

Given an XML document like this:

 <!DOCTYPE doc SYSTEM 'http://www.blabla.com/mydoc.dtd'>
 <author>john</author>
 <doc>
   <title>&title;</title>
 </doc>
I wanted to parse the above XML document and generate a copy of it with all ...

2. Locate SYSTEM entities when SAX parsing an XML document    coderanch.com

I am trying to use javax.xml.parsers.SAXParser to parse an XML document. It is OK until the XML document tries to use SYSTEM entities to reference another XML document. You know the idea: - ]> ... &foo; ... Here's the existing parsing code: - Reader in = _file.getReader(); SAXParser parser = getParserFactory().newSAXParser(); parser.parse(new InputSource(in), this); ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.