Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 5th, 2005, 07:13 AM
Registered User
 
Join Date: Apr 2005
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.

 
Old April 9th, 2005, 07:24 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
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)
 
Old May 15th, 2008, 08:00 AM
Registered User
 
Join Date: May 2008
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
 
Old May 15th, 2008, 08:19 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
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 -/





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





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