473,473 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem of selecting nodes in Xml

Hi,
I am using Dom Parsing in Xml. I am the parent node and it has many children
and each children has many children.
I want to select children with a given name .
Is there any method by which we select them with not going to each child
node .. something like
node.selectnodes (* + "/ABC");

I have time constraint and also i have to do changes so have to use DOM

Regards
Saurabh
Nov 16 '05 #1
2 1459
Saurabh Sharma wrote:
Hi,
I am using Dom Parsing in Xml. I am the parent node and it has many children
and each children has many children.
I want to select children with a given name .
Is there any method by which we select them with not going to each child
node .. something like
node.selectnodes (* + "/ABC");

I have time constraint and also i have to do changes so have to use DOM

Regards
Saurabh


You can use node.SelectNodes(".//ABC");
The "//" means that any number of nodes can be between the current node
(".") and "ABC".
Maybe "./*/ABC" also works to select "grandchildren" of any child
without going deeper.
--
Hans Kesting
Nov 16 '05 #2
Hi
When i select a node by "node.Selectnodes("*/ABC")"
the nodes dont have ne details abt the parent.
Can some one plz tell me why its is not storing the detail
As after selecting i need to delete the nodes so i need the details

Regards
Saurabh
"Saurabh Sharma" <sa***********@yahoo.com> wrote in message
news:OH**************@TK2MSFTNGP11.phx.gbl...
Hi,
I am using Dom Parsing in Xml. I am the parent node and it has many
children and each children has many children.
I want to select children with a given name .
Is there any method by which we select them with not going to each child
node .. something like
node.selectnodes (* + "/ABC");

I have time constraint and also i have to do changes so have to use DOM

Regards
Saurabh

Nov 16 '05 #3

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

Similar topics

1
by: Alastair Cameron | last post by:
VB6, MSXML 3.2 installed: Q1. I am having a problem selecting nodes with XPATH expressions when an attribute values contain backslashes (\\) in as part of its value: For example the...
5
by: Alexander Gnauck | last post by:
Hello, i have problems with the Namespaces and the .Net XML Parser My XML looks like this: <query xmlns="jabber:iq:roster"> <item jid="srlee@localhost" name="srlee"...
2
by: Dag | last post by:
Hi I am pretty much an xml beginner; hopefully someone can easily answer this one... I want to select a node representing a worksheet in an xml document for the Office Web Components spreadsheet....
1
by: Nancy Shelley | last post by:
Hi all: I am building a navigation menu using telerik's rad treeview I am able to build the outer menu but not the children. How do I select the child nodes (item) from within the loop? Any...
4
by: JoKur | last post by:
I'm currently using a context menu to allow the user to add, rename and delete nodes in a treeview control. When a node is added we give it a bogus name ("NewNode") and invoke the add method. We...
1
by: Stefan | last post by:
Hey guys ! Can someone pls help me and tell me how it is possible to Select a Node in 2nd row? I got a treeview which is build like follows: node2.Nodes.Add("blah", "blubb");...
5
by: Bob | last post by:
Hi, I have a treeview which contains nodes of a class (classA) derived from treenode. These classA nodes may contain nodes of a class (ClassB) derived from classA. The form load populates a...
2
by: Tymbow | last post by:
I'm building a web application that is analogous to the Windows XP file explorer in function. The left column contains a TreeView, and the right column a DataGrid populated by selecting TreeView...
7
by: PatrickRThomas | last post by:
I need help selecting nodes while excluding some of them. Here's an example of XML: <my_xml> <all_items> <item> <key>1</key> <name>Item 1</name> </item> <item>
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.