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
anup daware
NA
31
0
Strange!! Unexpected end of file while parsing Name has occurred
Feb 6 2007 5:34 AM
Hi Group, I am facing a strange problem here: I am trying to read xml response from a servlet using XmlTextWriter. I am able to read the read half of the xml and suddenly an exception: “Unexpected end of file while parsing Name has occurred” is being thrown. Following is the part o xml I am trying to read:
1
001
DEL_One
Bridgestone
HAR001
123.12
EURO
2
002
DEL_Two
Firestone
HAR002
453.12
EURO
3
003
FIRESTONE
HAR001
24.12
EURO
When I am trying to read the
FIRESTONE
(In Third item in the list), I am getting the “Unexpected end of file while parsing Name has occurred” exception. I am able to read the values from
element for first two elements. Following is the code I am using for reading the xml. case "BRAND": if (!xmlTextReader.IsEmptyElement) productInfo.Brand = xmlTextReader.ReadElementContentAsString(); break; I also have searched net for this problem but I found nothing useful? Please let me know if I am doing something wrong or missing on something. Thanks, Anup Daware
Reply
Answers (
1
)
is it possible get something from previous page??
Problem in Exporting data