Re: Attempting to read XML string and getting error...



June 17, 2005

Is oXML an XMLDocument? Could you maybe give a little bit of the
starting xml returned from oC? Probably what is happening, is you are
getting data such as

<data>...</...>
<data>...</...>
<data>...</...>

and to load it into a XMLDocument, there needs to be a higher up node such
as:

<group>
<data>...</...>
<data>...</...>
<data>...</...>
</group>

You add your own node to the beginning and end so that it is well formed if
this is the case. A sample would greatly help here! :-) Hope this helps and
have a great day!

--
Joseph Bittman
Microsoft Certified Application Developer

Web Site: http://71.35.110.42
Dynamic IP -- Check here for future changes

"Bryan Dickerson" <txprphan@xxxxxxxxxxxx> wrote in message
news:uHEh7i2cFHA.3376@xxxxxxxxxxxxxxxxxxxxxxx
> I'm still struggling with this XML stuff. I've gotten this far:
>
> oSR = New System.IO.StringReader(oC.GetAllContacts(txCICust.Text,
> txCIType.Text))
> oXML.LoadXml(oSR.ReadToEnd)
> sStr = "Found Contact Name:
> ".Concat(oXML.DocumentElement.SelectNodes("/Table/CI_NAME").Item(0).Value())
>
> ... but I get an error on the LoadXml method that says: "Root element is
> missing." What does that mean?
>
> --
> TFWBWY...A
>


.