BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do I put XML header information into Delphi TXMLDoc gene

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML
View previous topic :: View next topic  
Author Message
Khari Villela
Guest





PostPosted: Thu Sep 29, 2005 8:34 am    Post subject: How do I put XML header information into Delphi TXMLDoc gene Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.