 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Khari Villela Guest
|
Posted: Thu Sep 29, 2005 8:34 am Post subject: How do I put XML header information into Delphi TXMLDoc gene |
|
|
I am using both Delphi 7 and Delphi 2005 to generate XML documents to
interact with several web services I have written. Everything is working
just fine, but I have a bit of an annoying problem. The XML that is being
generated, while "well formed" and correct in all ways, does not contain
the header information that is "supposed" to come with XML.
For example, my program is generating XML that looks something like this:
<IXDataExchangeObject>
<DataElements>
<Element name="fData" dataType="float">45.6</Element>
<Element name="sData" dataType="string">test string value</Element>
</DataElements>
</IXDataExchangeObject>
My Hand created "standard XML" looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!--ProserpinIX XML Template-->
<!DOCTYPE IXDataExchangeObject SYSTEM
"http://www.proserpinix.com/XML/IXDataExchangeObjectXML.dtd">
<IXDataExchangeObject>
<DataElements>
<Element name="fData" dataType="float">45.6</Element>
<Element name="sData" dataType="string">test string value</Element>
</DataElements>
</IXDataExchangeObject>
I know this is probably just a cosmetic issue, and it certainly does not
seem to be affecting the functionality of my systems. Short of putting
the generated XML into a string list and "pre-pending" the header
information, is there a way to do this programmatically?
thanks
khariV
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|