From: Charlie & Barbara Bozeman (cbozeman@HiWAAY.net)
Date: Thu Apr 13 2000 - 00:11:21 EDT
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:55: error: SAX.entityDecl(common.att) called while not in subset
role NMTOKEN #IMPLIED'>
^
ado.dtd:58: error: SAX.entityDecl(common-idreq.att) called while not in
subset
role NMTOKEN #IMPLIED'>
^
ado.dtd:67: error: SAX.entityDecl(ref.att) called while not in subset
'ref IDREF #IMPLIED'>
^
ado.dtd:69: error: SAX.entityDecl(ref-req.att) called while not in
subset
'ref IDREF #REQUIRED'>
^
ado.dtd:77: error: SAX.entityDecl(rel-addr.att) called while not in
subset
'pad NMTOKEN #IMPLIED'>
^
ado.dtd:105: error: PEReference: %common-idreq.att; not found
ea NMTOKEN #IMPLIED' >
^
ado.dtd:111: warning: PEReference: %common.att; not found
<!ATTLIST adapt-data-tables %common.att; >
^
ado.dtd:115: warning: PEReference: %common.att; not found
<!ATTLIST buildinfo %common.att; >
^
ado.dtd:119: warning: PEReference: %common.att; not found
<!ATTLIST version %common.att; >
^
ado.dtd:123: warning: PEReference: %common.att; not found
<!ATTLIST flight %common.att; >
^
ado.dtd:127: warning: PEReference: %common.att; not found
<!ATTLIST csciinfo %common.att; >
^
ado.dtd:130: warning: PEReference: %common.att; not found
<!ATTLIST name %common.att; >
^
ado.dtd:132: warning: PEReference: %common.att; not found
<!ATTLIST short-name %common.att; >
^
ado.dtd:136: warning: PEReference: %common.att; not found
<!ATTLIST mdminfo %common.att; >
^
ado.dtd:140: warning: PEReference: %common.att; not found
<!ATTLIST ldpid %common.att; >
^
ado.dtd:144: warning: PEReference: %common.att; not found
<!ATTLIST inputs %common.att; >
^
ado.dtd:149: warning: PEReference: %common.att; not found
<!ATTLIST outputs %common.att; >
^
ado.dtd:155: warning: PEReference: %common.att; not found
%common.att;
^
ado.dtd:156: warning: PEReference: %ref-req.att; not found
%ref-req.att; >
^
ado.dtd:160: warning: PEReference: %common.att; not found
<!ATTLIST binlist %common.att; >
^
ado.dtd:169: warning: PEReference: %common.att; not found
%common.att;
^
ado.dtd:179: warning: PEReference: %common.att; not found
%common.att;
^
ado.dtd:185: warning: PEReference: %common-idreq.att; not found
%common-idreq.att;
^
ado.dtd:186: warning: PEReference: %ref.att; not found
%ref.att;
^
ado.dtd:199: warning: PEReference: %common.att; not found
<!ATTLIST base %common.att; >
^
ado.dtd:201: warning: PEReference: %common.att; not found
<!ATTLIST ext %common.att; >
^
ado.dtd:205: warning: PEReference: %common.att; not found
<!ATTLIST input %common.att; >
^
ado.dtd:208: warning: PEReference: %ado-content.mix; not found
<!ELEMENT ado %ado-content.mix; >
^
ado.dtd:208: error: xmlParseElementDecl: 'EMPTY', 'ANY' or '(' expected
<!ELEMENT ado %ado-content.mix; >
^
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?
Charlie Bozeman
---- 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