swteam Posted August 16, 2008 Posted August 16, 2008 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 Quote
Nate Bross Posted August 18, 2008 Posted August 18, 2008 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. Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.