From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Thu Apr 13 2000 - 03:37:50 EDT
On Wed, Apr 12, 2000 at 11:11:21PM -0500, Charlie & Barbara Bozeman wrote:
>
> I have an application which parses an xml file, modifies the in-memory
> document, copies the document (using xmlCopyDoc), then validates the
> copy. I get error messages like the following:
>
> ado.dtd:39: error: SAX.entityDecl(ado-content.mix) called while not in
> subset
> '(name, daddr?, eaddr?, (g-ref | f-ref | field)+ )'
> ^
[...]
> ado.dtd:105: error: PEReference: %common-idreq.att; not found
> ea NMTOKEN #IMPLIED' >
> ^
[...]
> ado.dtd:208: error: Extra content at the end of the document
> <!ELEMENT ado %ado-content.mix; >
> ^
> Could not load the external subset "ado.dtd"
>
> I can reproduce these errors by typing:
> xmllint --postvalid --copy --noout test.xml
>
> on my xml document. My dtd uses entities, is there some call I need to
> be making after the document is copied?
Seems a weakness of the xmlCopyDoc implementation. I added a lot
of informations to the tree content since I checked it for the last
time. At least some entities handling informations don't seems to be
processed correctly (and I'm afraid some of the DTD element and attribute
lookup tables need to be rebuilt).
Could you send me an exemple of:
- the code
- the dtd/xml
so it's faster for me to get those fixed.
Daniel
-- Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | Today's Bookmarks : Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux XML libxml WWW Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind http://www.w3.org/People/all#veillard%40w3.org | RPM badminton Kaffe ---- Message from the list xml@xmlsoft.org Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@xmlsoft.org
This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:30:10 EDT