G
Guest
Hi!
To get a XmlNode from an untyped DataSet with Path is no problem at all. It
works fine and gives you the expected node a long you use the rigth XPath
exprssion with SelectSingleNode. I've done that in many projekts succesfully
with untyped DataSets!
But now I am working with strongly typed DataSet and it does'nt work
anymore. When I save the XML with WriteXml(fileName) I can see clearly that
the only difference between the untyped and the strongly typed DatatSet is
the fact that the strongly typed DataSet uses a reference
xmlns:http://../mySchema.xsd as attribute in the document element.
That's the only difference. But that's seem to be the reason why I can't use
the same XPath expression to get a single or the first node by the
SelectSingleNode(9 method.
What can I do to solve the problem? I can't see the reason why I can't use
the already working xPath expression anymore because I am using an strongly
typed DataSet instead of an untyped DataSet.
What's the difference and how can I solve that problem?
Thank you fpr your help
Gerda
To get a XmlNode from an untyped DataSet with Path is no problem at all. It
works fine and gives you the expected node a long you use the rigth XPath
exprssion with SelectSingleNode. I've done that in many projekts succesfully
with untyped DataSets!
But now I am working with strongly typed DataSet and it does'nt work
anymore. When I save the XML with WriteXml(fileName) I can see clearly that
the only difference between the untyped and the strongly typed DatatSet is
the fact that the strongly typed DataSet uses a reference
xmlns:http://../mySchema.xsd as attribute in the document element.
That's the only difference. But that's seem to be the reason why I can't use
the same XPath expression to get a single or the first node by the
SelectSingleNode(9 method.
What can I do to solve the problem? I can't see the reason why I can't use
the already working xPath expression anymore because I am using an strongly
typed DataSet instead of an untyped DataSet.
What's the difference and how can I solve that problem?
Thank you fpr your help
Gerda