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
mgerke
NA
1
0
Help - deserializing XML
Nov 5 2004 2:07 PM
"There is an error in the XML document" I receive this message, though my XML is well formed. Here's my XML as it looks in code (the batchInfoNode cited in code snippet below):
Here's my code: // Create an instance of the XmlSerializer specifying type. XmlSerializer serializer = null; serializer = new XmlSerializer(typeof(BatchInfoData)); XmlNode batchInfoNode = batchNode.SelectSingleNode("/BATCH/BATCHINFO"); XmlNodeReader reader = new XmlNodeReader(batchInfoNode); // Use the Deserialize method to restore the object's state. m_batchInfoData = (BatchInfoData)serializer.Deserialize(reader); And the BatchInfoData object class is tagged as [Serializable()] And the properties are decorated with tags such as [DataName("process_name"), DataType(), XmlAttribute("processname")] Where am I going wrong? Thanks.
Reply
Answers (
0
)
How to display the 'search' and 'result' on the same page? c# , aspx & Sql Reporting Services
Multiple forms Windows applications(questions)