W
wishsand
Here is the XML in a file:
<?xml version='1.0' encoding='utf-8' ?>
<bkxml version='1.0' xmlns='http://www.w3.org/2003/03/bkxml'>
<model>
<data name="angle" expr="100"></data>
<data name="sample" expr="200"></data>
</model>
</bkxml>
I use
XmlDocument.DocumentElement.SelectNode("/bkxml/model/data").Count,but
it returns 0. It will work once xmlns is omitted. However I have
defined Bkxml.xsd well, and validation is ok.
Who have experienced the same problem? Could you explain the reason?
Thank you!
Sand
<?xml version='1.0' encoding='utf-8' ?>
<bkxml version='1.0' xmlns='http://www.w3.org/2003/03/bkxml'>
<model>
<data name="angle" expr="100"></data>
<data name="sample" expr="200"></data>
</model>
</bkxml>
I use
XmlDocument.DocumentElement.SelectNode("/bkxml/model/data").Count,but
it returns 0. It will work once xmlns is omitted. However I have
defined Bkxml.xsd well, and validation is ok.
Who have experienced the same problem? Could you explain the reason?
Thank you!
Sand