Parser needed for non-well formed docs

Marc Palmer <[email protected]> Thu, 9 Dec 2004 20:16:29 +0000
Newsgroups gmane.comp.java.sun.xml.general
Organization AnyWare Ltd.
Message-ID <[email protected]>
Hi,

I have an interesting problem.

I'm trying to write a GUI editor for XML docs that include external
parsed entities.

However I need to maintain the original document structure (i.e.
multiple files) so I want to load the files used for external entities
individually, so I can modify their DOMs separate from the main XML
document DOM.

The trouble is I can't find a parser that will read non-well formed
external entity XML files (they typically have no root node, or rather
"multiple" root nodes) without throwing an error and then halting the
parse - usually citing "illegal character and end of file &#x3c;"
because it hits the next (root level) tag in the external doc.

Is there such a parser out there? I really don't want to write a new one
or hack an existing one unless absolutely necessary.

Thanks in advance.

--
Marc Palmer
[email protected]

                         w a n g j a m m e r s

                  java and web software design
               experts with an ethical outlook

                    http://www.wangjammers.org

-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:[email protected]
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:[email protected] the following message;
signoff xml-interest.