Solved

How do I pass an XML reader that expands HTML entities?

Posted on 2009-04-14
2
401 Views
Last Modified: 2012-05-06
I am trying to bind an xml document to a dataset. The problem is the XML document  has special characters namliey html chracters. This Xml document will be used for updating and making changes to a product catalog-- so simply removing the HTML Entities isnt an option.

How do I pass an XML reader that expands HTML entities? I am using XmlTextReader.
DataSet DS = new DataSet();
                DS.XmlTextReader(Server.MapPath("countries.xml"));
				DG1.DataSource = DS;
				DG1.DataBind();

Open in new window

0
Comment
Question by:Vitamin1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
oobayly earned 250 total points
ID: 24141853
If you mean having something life the following xml, you could use CDATA. Anything in a CDATA element is interpreted as literal text.
<element><![CDATA[
  <div>
    <a href='http://www.google.com'>Google</a>
  </div>
]]></element>

Open in new window

0
 

Author Comment

by:Vitamin1
ID: 24149084
Sorry, not what I meant. the idea is we have this product database that comes down as an XML we can edit the content of the XML and then push the edited XML document back up to the server. I was trying to use a dataset in order to do this but the current ml reader i am using cannot expand the html entities found with in the product descriptions and the like..
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question