|
-
Jul 8th, 2005, 06:32 AM
#1
Thread Starter
Member
WebService+XML+ASPX
Hi,
Web Service that I‘m trying to use generates following XML file
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfSpellingResult xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://localhost/TS/literalTypes">
<SpellingResult>
<Error_type>Unknown word</Error_type>
<Error_word>string</Error_word>
<Error_start>0</Error_start>
<Error_length>6</Error_length>
<Suggestions>
<string>sting</string>
<string>stringa</string>
<string>stringi</string>
<string>stringu</string>
<string>stringą</string>
<string xsi:nil="true" />
</Suggestions>
</SpellingResult>
<SpellingResult xsi:nil="true" />
</ArrayOfSpellingResult>
In my page I’m trying to load this xml file:
Dim xd As New XmlDocument
Dim xitems As XmlNodeList
Dim xn As XmlNode
xd.Load("http://AdressToWebService.com/TS.asmx/CS?word_buffer=string&User=Tom")
xitems = xd.SelectNodes("/ArrayOfSpellingResult/SpellingResult/Suggestions/string")
For Each xn In xitems
If Not xn.FirstChild Is Nothing Then
txtData.Text = xn.FirstChild.Value
End If
Next
But node count is 0 why???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|