TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ashutosh kumar gupta
NA
190
0
XML Parsing using C#
Aug 20 2016 3:13 AM
Hi,
I am using the below XML and trying to parse it using c#. This XML is passed by the client as string into the restful WCF service.
<root><store_code>94</store_code><store_name>12087 PH Vizag</store_name><name>sudhakar kondapaneni </name><mobile>9000607208</mobile><dob>NULL</dob><
addr>GF2 , House num:<a href='tel:50-</addr>
<gender>NULL</gender><bill_no>1530</bill_no><coupon_code></coupon_code><order_type>2</order_type><bill_date>2016-07-24 20:21:15</bill_date><bill_amt>308.00</bill_amt><email_id>
[email protected]
</email_id><channel_id>0187-6321091 webMobile </channel_id><grid>F1 </grid><Item_Details><ItemDetail><product_name>Pizza</product_name><product_id>3582</product_id><item_amt>140.00</item_amt><qty>1</qty><is_Combo></is_Combo><item_type>M</item_type></ItemDetail><ItemDetail><product_name>Pan </product_name><product_id>1970</product_id><item_amt>0.00</item_amt><qty>1</qty><is_Combo></is_Combo><item_type>M</item_type></ItemDetail><ItemDetail><product_name>Personal</product_name><product_id>3573</product_id><item_amt>0.00</item_amt><qty>1</qty><is_Combo></is_Combo><item_type>M</item_type></ItemDetail><ItemDetail><product_name>Whole</product_name><product_id>1566</product_id><item_amt>0.00</item_amt><qty>1</qty><is_Combo></is_Combo><item_type>M</item_type></ItemDetail><ItemDetail><product_name>Whole</product_name><product_id>1566</product_id><item_amt>0.00</item_amt><qty>1</qty><is_Combo></is_Combo><item_type>M</item_type></ItemDetail><ItemDetail><product_name>Margherita</product_name><product_id>1575</product_id><item_amt>0.00</item_amt><qty>1</qty><is_Combo></is_Combo><item_type>M</item_type></ItemDetail><ItemDetail><product_name>Capsicum</product_name><product_id>1801</product_id><item_amt>0.00</item_amt><qty>1</qty><is_Combo></is_Combo><item_type>M</item_type></ItemDetail><ItemDetail><product_name>GB Cheese</product_name><product_id>1484</product_id><item_amt>99.00</item_amt><qty>1</qty><is_Combo></is_Combo><item_type>M</item_type></ItemDetail><ItemDetail><product_name>ChoTruffleCk</product_name><product_id>1792</product_id><item_amt>69.00</item_amt><qty>1</qty><is_Combo></is_Combo><item_type>M</item_type></ItemDetail><ItemDetail><product_name>WebCCardPaid </product_name><product_id></product_id><item_amt>0.00</item_amt><qty>1</qty><is_Combo></is_Combo><item_type>T</item_type></ItemDetail><ItemDetail><product_name>WebCCardPaid</product_name><product_id></product_id><item_amt>371.00</item_amt><qty>1</qty><is_Combo></is_Combo><item_type>T</item_type></ItemDetail></Item_Details></root>
But in the XML text which is marked as bold having the < sign which is failing while parsing. I have tried to replace it with < but it replaced all the XML sign as well. How can I replace only text part of the XML. I have tried many ways but could not succeed. I have replaced all the special characters but not able to replace this. Please help me, its urgent.
Reply
Answers (
3
)
How to add hardware ID protection in to a form in c# .net?
platinumcleanserinfo.com/kiara-skin-cream/