| | |
Access unqualified XML element
Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
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 algorithm alignment app application array bitmap box c# c#gridviewcolumn check checkbox client color combo combobox communication concurrency control conversion csharp custom data database datagrid datagridview dataset datatable datetime degrees draganddrop drawing enabled encryption enum excel file focus form format forms function gdi+ getoutlookcontactusinfcsvfile globalization hospitalmanagementsystem image input install java list localization mandelbroth math messagebox microsoftc#visualexpress mono mouseclick mysql operator path photoshop picturebox pixelinversion plotting pointer post programming radians read regex remote remoting richtextbox save server sleep socket sql sql-server statistics string stringformatting sun table text textbox thread time timer update usercontrol validate validation visualstudio webbrowser winforms wpf xml





