Hi,
I have a web service accepting an XMLNode as one of its arguments.
i.e.
[WebMethod]
myWebservice (XmlNode data){
.....
}
The InnerXML of the node is of the form:
<data>
<row><myfield1></myfield1><myfield2></myfield2></row>
<row>...</row>
</data>
I can easily loop through the row elements by itterating through the data.ChildNodes collection. But I cannot access any of the fields by their name. I've tried various XPath queries using selectSingleNode but to no avail.
Can anyone give me a clue (i.e. tell me how to do it :o))
It must be the simplest thing in the world but I can't get it to work, could it be that I need a XmlNamespaceManager that knows about my schema?
thanks in advance.
Arran