We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,924 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

removing xml tags from json data

I have question about json data. I can convert data from database to json data in asp.net web service but they come with xml tags. I need to remove string tags and xml information from this data. The appearance of the data is :
<?xml version="1.0" encoding="utf-8" ?>

<string xmlns="http://tempuri.org/">

[{"ID":10,"Duration":24235},{"ID":21,"Duration":9034},{"ID":12,"Duration":13681},{"ID":1,"Duration":23053},{"ID":13,"Duration":22863},{"ID":22,"Duration":57163}]

</string>

2
Contributors
1
Reply
2 Hours
Discussion Span
3 Months Ago
Last Updated
5
Views
pln89
Newbie Poster
3 posts since Jan 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

The best way is to change your webservice so it doesn't return those tags.
Post the code for your method.

AleMonteiro
Master Poster
752 posts since Aug 2010
Reputation Points: 129
Solved Threads: 140
Skill Endorsements: 23

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0760 seconds using 2.67MB