XPathNodeIterator xmlpathAll = library.GetXmlAll();
XmlDocument docAll = new XmlDocument();
doc.LoadXml(xmlpathAll.Current.OuterXml);
XmlNodeList list = doc.GetElementsByTagName("node");
// loop over the nodes returned
foreach (XmlNode node in list)
{
if (node.Attributes["nodeTypeAlias"].Value == "YOU_NODE_TYPE")
{
// do your shizzle...
}
}
Get all Doucments of DocumentType X
In a .net control how does one go about getting all documents of documenttype X? Google has failed me.
Hi skiltz, try something like this:
XPathNodeIterator xmlpathAll = library.GetXmlAll(); XmlDocument docAll = new XmlDocument(); doc.LoadXml(xmlpathAll.Current.OuterXml); XmlNodeList list = doc.GetElementsByTagName("node"); // loop over the nodes returned foreach (XmlNode node in list) { if (node.Attributes["nodeTypeAlias"].Value == "YOU_NODE_TYPE") { // do your shizzle... } }Hope this helps,
Nik
Thanks Nik worked perfectly :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.