I was wondering if anybody gets similar results when attempting to query an
XML Doc with an XPath query or if this is expected behavior or if I'm using
something incorrectly.
<xml ...>
<LoginInfo>
<user>
<username>test</username>
<password>test</password>
</user>
<user>
<username>why won't </username>
<password>this work</password>
</user>
</LoginInfo>
'vb.net code below
dim x as new xmldocument()
x.load("c:\filepath.xml")
dim y as xmlnodelist
y=x.selectnodes("/user[username='test']")
'When I examine the value of y, it holds something like "testtestwhy
won'tthiswork"
'I thought my query was bad, so I ran it in an .htm with IE and got the
result set I was looking for, namely
<user>
<username>test</username>
<password>test</username>
</user>
any ideas on why .net returns a string like that?