Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XML
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 5th, 2005, 07:13 AM
Registered User
 
Join Date: Apr 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nikhil_vaghela
Default Error in loading XML.

Hello,
I am loading my XML from database field.So first i am taking the value from database to string and then using LoadXML ( in .Net )i am loading the XML.

the problem is when i have Unicode character in my XML it gives error like this.
"An error occurred while parsing EntityName"....

How can i solve it.pls reply.
Thanks,
Nikhil vaghela.

Reply With Quote
  #2 (permalink)  
Old April 9th, 2005, 07:24 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Can you provide a small example of a string that causes this error message?

--

Joe (Microsoft MVP - XML)
Reply With Quote
  #3 (permalink)  
Old May 15th, 2008, 08:00 AM
Registered User
 
Join Date: May 2008
Location: , , India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Plz check your xml. You have to remove '&' if its exist there. You can replace it by using "amp;"

Regards,
Vijay Modi

Regards,
Vijay Modi
Reply With Quote
  #4 (permalink)  
Old May 15th, 2008, 08:19 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Its very hard to say what might be the problem without seeing your XML (other than to say that there is an error in the XML).

Like Vijay says, common errors are unescaped '&' symbols in your text, but if you are writing the Xml using the same code as you are reading it with this shouldn't be a problem (only if you are writing the XML manually, or through simple string manipulation).



/- Sam Judson : Wrox Technical Editor -/
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading XML files in XSLT newbieboobers XSLT 2 March 12th, 2008 11:42 AM
Loading Xml Files in session causes problem umair.hasan ASP.NET 1.0 and 1.1 Professional 1 February 26th, 2008 04:02 AM
loading XML Documents in IFrame in IE 5.0 anil_tiwari Javascript 1 February 2nd, 2006 08:01 PM
Navigate XML when loading with Javascript. awetch XML 1 February 24th, 2005 03:56 AM
Xml Dcument not loading bearpaws XML 3 November 14th, 2003 01:29 PM



All times are GMT -4. The time now is 09:02 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.