|
We just switched from IBM xml4j to Apache Xerces, and found
that
character references and general entities not working in PCDATA, while it's working in attributes. Here is the xml file we used. The blue part will give us the right text, but the purple part is shrinked to "function Function2(){ good": <?xml version="1.0"?> <!DOCTYPE FunctionDef SYSTEM "function.dtd" > <FunctionDef id='Function2 <good>"' description='Function'> function Function2(){ good < } <VersionInfo version="1" modified="N" srcLibrary="tlv1024" srcArchive="tlv1024" createdBy="jyu" createdDate="NOV-02-1999 14:32" modifiedBy="jyu" modifiedDate="JAN-25-2000 12:06" status="draft"/> </FunctionDef> the dtd file we used is called function.dtd and it has the following: <!ELEMENT FunctionDef (#PCDATA | VersionInfo)*> <!ATTLIST FunctionDef id ID #IMPLIED description CDATA #IMPLIED > Is this a known bug, or do you have already got patches for that? Thanks a lot for your time and help, John |
