Advertisement

12.28.2007 at 04:39AM PST, ID: 23046928
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

XMLtextReader using C# get xmlexpection while parsing good XML

Asked by national_fulfillment in C# Programming Language, Extensible Markup Language (XML), Extensible HTML (XHTML)

Tags: , , , ,

Get the following error Unexpected end of file has occurred.

Unexpected end of file has occurred. The following elements are not closed: Item, Order, OrderList. Line 101, position 5.
 
The xml is good. I've validated it.  It happens around the 5th item after description. Is there some sort of buffer size or something when using XMLTextReader the size of the stream coming in is 6098

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE OrderList SYSTEM "http://store.yahoo.com/doc/dtd/OrderList2.dtd">
<OrderList StoreAccountName="iuoi">
 <Order currency="USD" id="-100092">
  <Time>Thu Dec 27 01:19:23 2007 GMT</Time>
  <NumericTime>1198718363</NumericTime>
  <Referer>&lt;a href=http://search.aol.com&gt;search.aol.com&lt;/a&gt; search for &lt;a href=http://search.aol.com/aol/search?invocationType=ff-plug&amp;query=yestermusic%20com&gt;yestermusic com&lt;/a&gt;</Referer>
  <Entry-Point>&lt;a href=http://yestervideo.com/&gt;http://yestervideo.com/&lt;/a&gt;</Entry-Point>
  <AddressInfo type="ship">
   <Name>
    <First>Frank</First>
    <Last>Frokkkkkek</Last>
    <Full>Frank Fronllllllek</Full>
   </Name>
   <Company></Company>
   <Address1>51 Bulo Speedllllway #</Address1>
   <Address2></Address2>
   <City>Houston</City>
   <State>TX</State>
   <Country>US United States</Country>
   <Zip>77005-4300</Zip>
   <Phone>71366</Phone>
   <Email></Email>
  </AddressInfo>
  <AddressInfo type="bill">
   <Name>
    <First>Frank</First>
    <Last>Fronlolllek</Last>
    <Full>Frank Fronllllek</Full>
   </Name>
   <Company></Company>
   <Address1>Speedway9</Address1>
   <Address2></Address2>
   <City>Houston</City>
   <State>TX</State>
   <Country>US United States</Country>
   <Zip>77005-4300</Zip>
   <Phone>71</Phone>
   <Email>ffro.com</Email>
   <Custom name="MailingListOpIn-Out">yes</Custom>
   <Custom name="send-review-email">yes</Custom>
  </AddressInfo>
  <IPAddress>70.2.121.234</IPAddress>
  <Shipping>Standard</Shipping>
  <CreditCard expiration="04/2009" type="Discover">64545455454454</CreditCard>
  <Comments>I like your new (to me) catalog and order form.</Comments>
  <Item num="0">
   <Id>540120</Id>
   <Code>540120</Code>
   <Quantity>1</Quantity>
   <Unit-Price>11.98</Unit-Price>
   <Description>The Legend Pavarotti (3 CD)</Description>
   <Url>http://store.yahoo.com/yhst-40108556347431/540120.html</Url>
   <Taxable>YES</Taxable>
   <Thumb>&lt;img border=0 width=70 height=61 src=http://us.st11.yimg.com/us.st.yimg.com/I/yhst-40108556347431_1980_15646512&gt;</Thumb>
  </Item>
  <Item num="1">
   <Id>k40846</Id>
   <Code>K40846</Code>
   <Quantity>1</Quantity>
   <Unit-Price>13.99</Unit-Price>
   <Description>Aida (1 VHS)</Description>
   <Url>http://store.yahoo.com/yhst-40108556347431/k40846.html</Url>
   <Taxable>YES</Taxable>
   <Thumb>&lt;img border=0 width=39 height=70 src=http://us.st11.yimg.com/us.st.yimg.com/I/yhst-40108556347431_1981_124973849&gt;</Thumb>
  </Item>
  <Item num="2">
   <Id>k19147</Id>
   <Code>K19147</Code>
   <Quantity>1</Quantity>
   <Unit-Price>4.99</Unit-Price>
   <Description>The Jesus Experience (4 VHS)</Description>
   <Url>http://store.yahoo.com/yhst-40108556347431/k19147.html</Url>
   <Taxable>YES</Taxable>
   <Thumb>&lt;img border=0 width=39 height=70 src=http://us.st11.yimg.com/us.st.yimg.com/I/yhst-40108556347431_1981_124194731&gt;</Thumb>
  </Item>
  <Item num="3">
   <Id>k30342</Id>
   <Code>K30342</Code>
   <Quantity>1</Quantity>
   <Unit-Price>11.99</Unit-Price>
   <Description>Luciano Pavarotti: In Concert In China (1 VHS)</Description>
   <Url>http://store.yahoo.com/yhst-40108556347431/k30342.html</Url>
   <Taxable>YES</Taxable>
   <Thumb>&lt;img border=0 width=39 height=70 src=http://us.st11.yimg.com/us.st.yimg.com/I/yhst-40108556347431_1981_124551409&gt;</Thumb>
  </Item>
  <Item num="4">
   <Id>k80743</Id>
   <Code>K80743</Code>
   <Quantity>1</Quantity>
   <Unit-Price>7.49</Unit-Price>
   <Description>Murder With Mirrors (1 VHS)</Description>
   <Url>http://store.yahoo.com/yhst-40108556347431/k80743.html</Url>
   <Taxable>YES</Taxable>
   <Thumb>&lt;img border=0 width=48 height=70 src=http://us.st11.yimg.com/us.st.yimg.com/I/yhst-40108556347431_1981_128178281&gt;</Thumb>
  </Item>
  <Item num="5">
   <Id>b56578</Id>
   <Code>B56578</Code>
   <Quantity>1</Quantity>
   <Unit-Price>17.98</Unit-Price>
   <Description>Opera Hits (1 DVD)</Description>
   <Url>http://store.yahoo.com/yhst-40108556347431/b56578.html</Url>
   <Taxable>YES</Taxable>
   <Thumb>&lt;img border=0 width=39 height=70 src=http://us.st11.yimg.com/us.st.yimg.com/I/yhst-40108556347431_1981_118405945&gt;</Thumb>
  </Item>
  <Total>
   <Line type="Subtotal" name="Subtotal">68.42</Line>
   <Line type="Shipping" name="Shipping">0.00</Line>
   <Line type="Tax" name="Tax">0.00</Line>
   <Line type="Total" name="Total">68.42</Line>
  </Total>
  <Space-Id></Space-Id>
 </Order>
</OrderList>
<!-- edit157.store.mud.yahoo.com compressed Thu Dec 27 06:19:03 PST 2007 -->
Start Free Trial
[+][-]12.28.2007 at 06:03AM PST, ID: 20541719

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.28.2007 at 06:04AM PST, ID: 20541724

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.28.2007 at 06:08AM PST, ID: 20541760

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.28.2007 at 06:44AM PST, ID: 20542043

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C# Programming Language, Extensible Markup Language (XML), Extensible HTML (XHTML)
Tags: end, file, has, parsing, while
Sign Up Now!
Solution Provided By: evilrix
Participating Experts: 1
Solution Grade: B
 
 
[+][-]12.28.2007 at 07:11AM PST, ID: 20542285

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.20.2008 at 07:04AM PST, ID: 20701333

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628