Hi Guys

I'm fetching data using an SQL stored procedure and returning XML
using FOR XML EXPLICIT.

In my code I'm then using ExecuteXMLReader on my sql command to pull
the data into an XMLReader.

When I try parsing the XMLReader, loading into an XMLDocument etc I
get the following exception when the contents of some elements are
rather long (approx 700 chars inc spaces)

System.Xml.XmlException: Unexpected end of file has occurred. The
following elements are not closed:

If I reduce the contents of the XML elements drastically everthing
works fine.

Is there a known limit on Element contents when using XMLReader that
makes it think the element tags havent been closed?

Thank You In Advance

Hanks

p.s. If I read the results into a string using an SQLDataReader
everything works fine

Reply via email to