473,382 Members | 1,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

read and interpret xml string

hi all,
perhaps a simple question, but some guidance would be great...

I have a webservice that churns out XML.

I need to create a VB.NET app to call the webservice, read the XML
response, and then perhaps iterate through it to display the content in
listviews, treeviews and the like.

Any tips to get me started?

I have got as far as calling the webservice and returning the XML as a
string.
More specifically, I don't know how to use this string as XML and read
the nodes etc.

TIA

TIM

Mar 6 '06 #1
3 2669
Hi TIM,

Since you've got to the point of returning the XML as a string, and now
you need to parse it into fields, check out this recent post which asks
the same question :

http://groups.google.com/group/micro...4b52e77e5c81f4

In short, it recommends that you use the XmlDocument class to read the
XML string. All the nodes will then be available to you. What you do
next will depend on your plan of action thereafter.

As you indicated that you would want to display the data in a Treeview,
you can check out this article :

http://aspnet.4guysfromrolla.com/articles/051403-1.aspx

and this MSDN article :

http://msdn2.microsoft.com/en-us/lib.../7a9swst5.aspx

Hope this helps,

Regards,

Cerebrus.

Mar 7 '06 #2
thanks for that.

here is a related question...

In asp.net I just use an xml stylesheet and my xml is wonderfully
formatted. How can I achieve this in vb.net? Yes, I could just drop a
web browser onto the form, but I would need to be able to pick up
events from the browser in my exe.

any ideas? it must be a common problem.

thanks again
Tim

Mar 12 '06 #3
Hi,
In asp.net I just use an xml stylesheet and my xml is wonderfully
formatted. How can I achieve this in vb.net?


I think your question is better stated as : "How do I achieve this in
Windows Forms?"
since, VB.NET does not itself imply Windows Forms. You can use VB.NET
in ASP.NET development as well.

As for your answer, I think you should ask it as a new post, since I'm
not too sure about the answer.

Regards,

Cerebrus.

Mar 13 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: franzkowiak | last post by:
Hello, I've read some bytes from a file and just now I can't interpret 4 bytes in this dates like a real value. An extract from my program def l32(c): return ord(c) + (ord(c)<<8) +...
1
by: zjut | last post by:
I am writing a component like dropdownlist whose content should be read from xml,and i put the path of the xml file into the web.config fallow as...
75
by: Greg McIntyre | last post by:
I have a Python snippet: f = open("blah.txt", "r") while True: c = f.read(1) if c == '': break # EOF # ... work on c Is some way to make this code more compact and simple? It's a bit...
3
by: collinm | last post by:
hi i send a command to a led display, the led display is suppose to return me some character i write a string on a serial port void ledDisplayExist() { char msg={'\0', '\0', '\0', '\0',...
3
by: Jarod_24 | last post by:
My program (it's a webcrawler) downloads htmlpages and in some cases the html has <script> </script> tags in it that generates parts of the html. How can i interpret this javascript and get the...
4
by: Thomas Kreuzer | last post by:
Hello everyone, I have a question regarding how to interpret a string. Basically I want to write a little calculator, I will type something like "12+69*12-44/2" and then want my program to...
2
by: hup | last post by:
One of my Linux (CentOS) server stop interpret php code any more. I did try to compile and installed other version of php, but it's still not working. # cat /tmp/phpinfo.php <? phpinfo() ?>...
0
by: Bum | last post by:
Hello all, I have a C dll I need to tap into and some C code to interpret to vb.net 2005, but am so far unsuccessful. I just get the generic "runtime has encountered a fatal error at XXXXXX...
63
by: Bill Cunningham | last post by:
I don't think I can do this without some help or hints. Here is the code I have. #include <stdio.h> #include <stdlib.h> double input(double input) { int count=0,div=0; double...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.