Re: Attempting to read XML string and getting error...
- From: "Joseph Bittman MCAD" <RyanBittman@xxxxxxx>
- Date: Fri, 17 Jun 2005 11:23:54 -0700
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
>
.
- Follow-Ups:
- Re: Attempting to read XML string and getting error...
- From: Bryan Dickerson
- Re: Attempting to read XML string and getting error...
- References:
- Attempting to read XML string and getting error...
- From: Bryan Dickerson
- Attempting to read XML string and getting error...
- Prev by Date: Re: Attempting to read XML string and getting error...
- Next by Date: Re: Local Settings and NumberFormat issues
- Previous by thread: Re: Attempting to read XML string and getting error...
- Next by thread: Re: Attempting to read XML string and getting error...
- Index(es):