Hi,
I'm trying to create an XML document in the following form:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.011/cXML.dtd">
<cXML payloadID="45********@cxml.workchairs.com" xml:lang="en-US"
timestamp="1999-03-12T18:39:09-08:00" version="1.2.011">
<Response>
<Status code="200" text="OK" />
<PunchOutSetupResponse>
<StartPage>
<URL>http://premier.workchairs.com/store?23423SDFSDF23</URL>
</StartPage>
</PunchOutSetupResponse>
</Response>
</cXML>
I am able to generate the document perfectly using an XML document object
but when I try and add a doc type:
xDoc.CreateDocumentType("cXML", null,
"http://xml.cxml.org/schemas/cXML/1.2.009/cXML.dtd", null);
Performance of the XML generation degrades drastically with the presence of
the above statement. Without the doc type it takes next to no time to
generate - with the doc type it take a good few seconds.
Am I using the statement incorrectly? I get the feeling that using it may
result in validation of the XML against the DTD each time I add an element to
the XML (each time I add an element, performance degrades proportionately).
Thanks, in advance,
Ben McClaren