Hi all
i'm writing a pocketPc application that read information from xml
files. On desktop it works greatly but on a pocket pc i have this
error:

Projects\MediSystem\ParserXml.cs(113): 'System.Xml.XmlNode' does not
contain a definition for 'SelectNodes'

but i've included System.Xml ecc ecc
i've the same problem with SelecSingleNode.
How can i resolve this problem?
bye
Magoscuro

Re: PocketPc Xml Error... by Milsnips

Milsnips
Wed Jan 26 05:50:17 CST 2005

hi there,

SelectNode and SelectSingleNode arent supported in the CF.NET. try this
instead...

Dim xmlreader As New
XmlTextReader("http://servername/Northwind1/Products.xml")
xmlreader.WhitespaceHandling = WhitespaceHandling.None
xmlreader.MoveToContent()
While xmlreader.Read
' Loop through XmlTextReader...
Select Case xmlReader.Name
Case "firstName"
str1 = xmlReader.ReadString
Case "lastName"
str2 = xmlReader.ReadString
Case "zip"
str3 = Integer.Parse(xmlReader.ReadString)
End Select
End While
xmlreader.Close()

regards,
Paul.

"MagOscuro" <giovanni.daddabbo@gmail.com> wrote in message
news:43005039.0501260311.5597177d@posting.google.com...
> Hi all
> i'm writing a pocketPc application that read information from xml
> files. On desktop it works greatly but on a pocket pc i have this
> error:
>
> Projects\MediSystem\ParserXml.cs(113): 'System.Xml.XmlNode' does not
> contain a definition for 'SelectNodes'
>
> but i've included System.Xml ecc ecc
> i've the same problem with SelecSingleNode.
> How can i resolve this problem?
> bye
> Magoscuro



Re: PocketPc Xml Error... by Merlino666

Merlino666
Wed Jan 26 08:07:11 CST 2005

Milsnips , ha scritto:

> hi there,
>
> SelectNode and SelectSingleNode arent supported in the CF.NET. try this
> instead...
>
> Dim xmlreader As New
> XmlTextReader("http://servername/Northwind1/Products.xml")
> xmlreader.WhitespaceHandling = WhitespaceHandling.None
> xmlreader.MoveToContent()
> While xmlreader.Read
> ' Loop through XmlTextReader...
> Select Case xmlReader.Name
> Case "firstName"
> str1 = xmlReader.ReadString
> Case "lastName"
> str2 = xmlReader.ReadString
> Case "zip"
> str3 = Integer.Parse(xmlReader.ReadString)
> End Select
> End While
> xmlreader.Close()
>
> regards,
> Paul.
>
> "MagOscuro" <giovanni.daddabbo@gmail.com> wrote in message
> news:43005039.0501260311.5597177d@posting.google.com...
>
>>Hi all
>>i'm writing a pocketPc application that read information from xml
>>files. On desktop it works greatly but on a pocket pc i have this
>>error:
>>
>>Projects\MediSystem\ParserXml.cs(113): 'System.Xml.XmlNode' does not
>>contain a definition for 'SelectNodes'
>>
>>but i've included System.Xml ecc ecc
>>i've the same problem with SelecSingleNode.
>>How can i resolve this problem?
>>bye
>>Magoscuro
>
>
>
tnx 1000
i will try...stay tuned! :D

byeeeeezzzzzzzzzzz
--
Merlino666 - Il MagOscuro
Home Page: http://www.magoscuro.com
Exalted Italia Admin: http://www.magoscuro.com/exalted
Ihgger n°: 294

Re: PocketPc Xml Error... by MagOscuro

MagOscuro
Wed Jan 26 13:21:01 CST 2005

Milsnips , ha scritto:
> hi there,
>
> SelectNode and SelectSingleNode arent supported in the CF.NET. try this
> instead...
>
> Dim xmlreader As New
> XmlTextReader("http://servername/Northwind1/Products.xml")
> xmlreader.WhitespaceHandling = WhitespaceHandling.None
> xmlreader.MoveToContent()
> While xmlreader.Read
> ' Loop through XmlTextReader...
> Select Case xmlReader.Name
> Case "firstName"
> str1 = xmlReader.ReadString
> Case "lastName"
> str2 = xmlReader.ReadString
> Case "zip"
> str3 = Integer.Parse(xmlReader.ReadString)
> End Select
> End While
> xmlreader.Close()
>
> regards,
> Paul.

hi i've solved the problem to read a single tag but now i want read a
tag block for example:

<prod id="0">
<name>
<id>
ecc ecc
</prod>
<prod id="1">
<name>
<id>
ecc ecc
</prod>

i wanna read only prod id="0" ...
ideas?
tnx in advance!!!
--
Merlino666 - Il MagOscuro
Home Page: http://www.magoscuro.com
Exalted Italia Admin: http://www.magoscuro.com/exalted
Ihgger n°: 294