![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Convert XML to String [Thread Next] Re: Convert XML to StringTo: NULL Date: 1/1/2005 1:07:00 PM Sameer wrote: > I have a XML data string which is based on a XML Schema. I want to transform > this XML data into a normal string . This output string is then send to some > third party service using sockets. > Now the response I get back is also a string which I want to transform back > to XML based on my XML Schema. > > [ I have a mapping table which tells me which element corresponds to what > position in the Request string and Response string] > > Please let what can be most effective way to achieving the above process > [i.e XML->String and String-> XML]. It is possible to send XML over HTTP so it would be easier not to make any transformation. But if the third party service wants some other format than XML and you can't change the format then you need to implement the transformation. To transform XML to text you can use XSLT, it has an output method <xsl:output method="text" /> Of course it is also possible to use the DOM to exctract text data from an XML document. With the transformation back you are on your own and need to look at the text parsing tools your favourite programming language/toolkit provides. -- Martin Honnen http://JavaScript.FAQTs.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
