PDA

View Full Version : how to remove XML tag from a web service response ???




gowdalokeshs
Jan 5, 2011, 08:58 AM
Hi,

I have a webservice in ASP.NET that has one exposed Web Method ChkUserName. I am passing the username and password through this method.

I am able to get the response as follows for the given username/password.

<?xml version="1.0" encoding="utf-8" ?>
<string xmlns="http://mydomain.com/">1</string>

Is there anyway that I can get only the response back without the XML tags?

Thanks
LOKESH



dejo
Jan 5, 2011, 09:41 AM
What are you using the parse the XML response? Because in there you should just be able to ignore the <?xml> tag.