E
Emily
Hi all,
I have the following simplified version of xml file:
<xml xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882'>
<s:Schema id='RowsetSchema'>
<s:ElementType name='row'>
<s:AttributeType name='Fund1'>
<s:AttributeType name='Fund2'>
<s:AttributeType name='Fund3'>
</s:ElementType>
</s:Schema>
</xml>
In my C# code, I use xpath as follows:
XmlNodeList items = document.SelectNodes
("//s:Schema/s:ElementType/s:AttributeType");
This causes runtime error, "An unhandled exception of type
'System.Xml.XPath.XPathException' occurred in system.xml.dll"
Any advice on how to work-around the prefix of "s:" in the xpath? Many
thanks!
I have the following simplified version of xml file:
<xml xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882'>
<s:Schema id='RowsetSchema'>
<s:ElementType name='row'>
<s:AttributeType name='Fund1'>
<s:AttributeType name='Fund2'>
<s:AttributeType name='Fund3'>
</s:ElementType>
</s:Schema>
</xml>
In my C# code, I use xpath as follows:
XmlNodeList items = document.SelectNodes
("//s:Schema/s:ElementType/s:AttributeType");
This causes runtime error, "An unhandled exception of type
'System.Xml.XPath.XPathException' occurred in system.xml.dll"
Any advice on how to work-around the prefix of "s:" in the xpath? Many
thanks!