Top "Selectnodes" questions

Selects a list of nodes matching the XPath expression.

C# XmlDocument SelectNodes is not working

I want to get the value from XML file but I failed. Can you please help me point out the …

c# xml selectnodes
SelectSingleNode returns null when tag contains xmlNamespace

I'm loading a string into an XML document that contains the following structure: <?xml version="1.0" encoding="utf-8"?> <…

c# xml xmldocument selectsinglenode selectnodes
Basics of XmlNode.SelectNodes?

I'm not sure why this isn't working. I have an XmlNode in a known-format. It is: <[setting-name]> <…

c# xml xpath selectnodes
How to select all leaf nodes using XPath expression?

I believe it's possible but couldn't figure out the syntax. Something like this: xmlNode.SelectNodes("//*[count(child::*) <= 1]") but this …

syntax xpath selectnodes
selectSingleNode works but not selectNodes

Javascript: var req=xmlDoc.responseXML.selectSingleNode("//title"); alert(req.text); as expected, returns the text of the first "title" node. …

javascript internet-explorer xmlhttprequest selectsinglenode selectnodes
XElement to get all sub-element node names and values

I'm thinking of an approach something like this. Please let me know if this can actually work this way: For …

c# xmldocument xelement selectnodes
select elements with the name attribute name in special xml structure

below is the structure of my xml document. I just want to first take the value of every node <…

c# xml selectnodes
How to create Conditional Xpath statement?

I want to select xml node with conditional Xpath like- xmlnode.SelectSingleNode("if (ns:substanceAdministration/ns:consumable/@typeCode == UNK) then …

xml xpath selectnodes
Append data into existing xml file via powershell

Can I have some help to add nodes into an existing XML using powershell? Here is what I have: <…

xml powershell foreach selectnodes
SelectNodes with Filter

Here is my xml: <Instrument RecordCount="3" > <Department id = 18384, Sequence=1> <InstrumentData StatusCode="1" RoleType="ED" Style="X" …

c# xml xpath selectnodes