Re: Convert String data from Web Service to XML



On 12 Feb, 16:05, Avinash <avinashd...@xxxxxxxxx> wrote:
Hi
I am trying to Convert String data from Web Service to XML
My String data looks like
<String>My XML is inside this string tag </String>
I want to extract the XML inside the string tag in Orchestration, How
do i do it ??
Any help is appreciated.

Thanks-
Avinash

You could load it into a DOM using System.Xml.XmlDocument. If it is a
small piece of XML this shouldn't be too much of an overhead. If it's
a large amount of data this is not recommended as it will consume lots
of memory. Another option is to use an XmlTextReader (also in the
System.Xml namespace) to parse the document and use the
ReadElementContentAsString method to retrieve the value. Another quick
and dirty method is string parsing.
.



Relevant Pages

  • Re: How to grab data as UTF-8 rather than UTF-16 from DB?
    ... I'm using XMLTextWriter and grabbing data from a database and then spitting out an RSS-compliant XML file. ... IE doesn't like this as the XML encoding doesn't match the page encoding. ... Strings in .NET are handled as 16 bit unicode, so however you recieve the data from the database, it would be converted into 16 bit string data. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Convert String data from Web Service to XML
    ... I am trying to Convert String data from Web Service to XML ... I want to extract the XML inside the string tag in Orchestration, ... public XmlDocument VertexResponse ...
    (microsoft.public.biztalk.general)
  • Re: for xml raw problem
    ... Are you using SQL Server 2000 or 2005? ... In the case of SQL Server 2000, you will have to use the explicit mode and ... its!xml directive, if you want to have string data be inlined into the XML ...
    (microsoft.public.sqlserver.xml)
  • Convert String data from Web Service to XML
    ... I am trying to Convert String data from Web Service to XML ... I want to extract the XML inside the string tag in Orchestration, ...
    (microsoft.public.biztalk.general)

Loading