Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hai

 

I am developing an webservice which need to return out as XML file e.g(<ResponseXml><TransactionId >101398</TransactionId ></ResponseXML>)

But my web service is returning like this(<?xml version="1.0" encoding="utf-8" ?>

<string xmlns="lax"><ResponseXml><TransactionId >0</TransactionId>) can any one tell how can i remove the extra lines while returning here i want to remove (<?xml version="1.0" encoding="utf-8" ?>

<string xmlns="lax"> this lines i want tp cut please suggest me how do i procede

Posted

Why do you want to change the respone to a non-complient xml response?

 

Any standard XML reader [XmlDocument, etc] will support these extra tags.

 

If you use the Visual Studio "Add Web Reference" utility, you will not even need to deal with the XML as it'll all be handled behind the scenes.

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...