S
Simon
Hi,
I'm trying to serialize an XML document to a file using XERCES-C++
2.1.0 . The Document contains an internal DTD.
The DTD contains some elements with default values like the following
snippet:
<!ELEMENT SFLOPTRECPATTERN (#PCDATA)>
<!ATTLIST SFLOPTRECPATTERN
string CDATA """ "/" "-" 0 9"
....and the document contains some elements like this one:
<SFLOPTRECPATTERN string=""" "/" "-" 0
9"/>
My problem is:
when I parse the file, and later try to serialize it with DOMWriter's
writeToString-method, it breaks my internal DTD.
The above snippet will now look like this ( later resulting in a
parser error ),
<!ELEMENT SFLOPTRECPATTERN (#PCDATA)>
<!ATTLIST SFLOPTRECPATTERN
string CDATA """ "/" "-" 0 9"
while the corresponding element still remains correct:
<SFLOPTRECPATTERN string=""" "/" "-" 0
9"/>
Can anyone tell me, how I could prevent DOMWriter from changing my
" to " in a DTD?
Regards,
Simon
I'm trying to serialize an XML document to a file using XERCES-C++
2.1.0 . The Document contains an internal DTD.
The DTD contains some elements with default values like the following
snippet:
<!ELEMENT SFLOPTRECPATTERN (#PCDATA)>
<!ATTLIST SFLOPTRECPATTERN
string CDATA """ "/" "-" 0 9"
....and the document contains some elements like this one:
<SFLOPTRECPATTERN string=""" "/" "-" 0
9"/>
My problem is:
when I parse the file, and later try to serialize it with DOMWriter's
writeToString-method, it breaks my internal DTD.
The above snippet will now look like this ( later resulting in a
parser error ),
<!ELEMENT SFLOPTRECPATTERN (#PCDATA)>
<!ATTLIST SFLOPTRECPATTERN
string CDATA """ "/" "-" 0 9"
while the corresponding element still remains correct:
<SFLOPTRECPATTERN string=""" "/" "-" 0
9"/>
Can anyone tell me, how I could prevent DOMWriter from changing my
" to " in a DTD?
Regards,
Simon