DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C# (http://www.daniweb.com/forums/forum61.html)
-   -   Access unqualified XML element (http://www.daniweb.com/forums/thread34011.html)

callavin Oct 17th, 2005 10:44 am
Access unqualified XML element
 
Hi
I have one application which have xml like this:

<?xml version="1.0" encoding="utf-8" ?>
<XML xmlns="http://www.abc.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="xxxx.xsd">
<Device make="P" model="V">
<!--Group Information-->
<Groups>
<Group name="h">
<Device>P_V4</Device>
<Device>P_n</Device>
</Group>
....
....
</Device>
</XML>


How can I access the elements under the tag "Group"??

suggest me some good tutorial regarding the namesapaces and xpath queries?

Toulinwoek Oct 17th, 2005 7:37 pm
Re: Access unqualified XML element
 
Try this:

http://lab.msdn.microsoft.com/express/beginner/

This page has some very good beginner tutorials for C# Ezpress; the important thing is, one of them deals pretty thoroughly with XML and explains in simple terms how to access elements in XML files.


All times are GMT -4. The time now is 7:24 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC