![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
Daniel Barisch wrote: Within attribute-values i can use the double quote, which is written automaticly as """ into the document by the XML-methods of .NET: Node Name="a"b" Att1="true"/ But how to reference such nodes with an XPath-expression? => pXml.SelectSingleNode("//Folder[@Name=??]") What's the correct Syntax? With C# you can use pXml.SelectSingleNode("//Node[@Name = 'a\"b']") With VB.NET you can use pXml.SelectSingleNode("//Node[@Name = '\""b']") The real problem only occurs if the attribute value contains single _and_ double quotes. In that case you would need to break up the string into components. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |