S
schaf
Hi NG!
I'm reading a XML file which contains a namespace. So I create a
NameSpaceManager to use the .Select() functions on the XmlDocument and
XmlNode classes.
Reading like following example:
string sXPath = string.Format("ab:book[abrice<='{0}']",
dPrice.ToString(System.Globalization.CultureInfo.InvariantCulture));
XmlNodeList xmlbookList = xmlDocBooks.Select(sXPath,
m_xmlNameSpaceMgr);
Now I would like to sort my values in the xmlbookList.
Do I really have to use a while statement for getting my first two
books with the lowest price?
I tried the whole thing by using XPathNavigator but it is not possible
to add the XmlNamespaceManager and so the statements does not work as
soon as I have a Namespace in the XML file.
Do you have a hint ?
Regards
I'm reading a XML file which contains a namespace. So I create a
NameSpaceManager to use the .Select() functions on the XmlDocument and
XmlNode classes.
Reading like following example:
string sXPath = string.Format("ab:book[abrice<='{0}']",
dPrice.ToString(System.Globalization.CultureInfo.InvariantCulture));
XmlNodeList xmlbookList = xmlDocBooks.Select(sXPath,
m_xmlNameSpaceMgr);
Now I would like to sort my values in the xmlbookList.
Do I really have to use a while statement for getting my first two
books with the lowest price?
I tried the whole thing by using XPathNavigator but it is not possible
to add the XmlNamespaceManager and so the statements does not work as
soon as I have a Namespace in the XML file.
Do you have a hint ?
Regards