| | |
Access unqualified XML element
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2005
Posts: 2
Reputation:
Solved Threads: 0
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?
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?
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.
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.
:!: In The Beginning, God; In The End, God. In between, believe whatever you like. :)
![]() |
Similar Threads
- ASP.NET - session objects Problem (ASP.NET)
- Parse a XML element with AJAX (JavaScript / DHTML / AJAX)
- XML and str_replace ! (PHP)
- create XML element with namespace (VB.NET)
Other Threads in the C# Forum
- Previous Thread: host header on iis programmatically
- Next Thread: Sharp Develop Question
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# check checkbox client color combobox control conversion csharp custom database databasesearch datagrid datagridview datagridviewcheckbox dataset datetime degrees development draganddrop drawing encryption enum equation event excel file form format formatting forms function gdi+ httpwebrequest image index input install java label list listbox listener mandelbrot math mouse mouseclick mysql namevaluepairs operator path photoshop picturebox pixelinversion post powerpacks programming radians regex remote remoting resource restore richtextbox serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer update usercontrol validation visualstudio wait webbrowser windows winforms working wpf xml





