Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I am using an XML reader like below. I would like to filter results according to XML data.
@{
//Fetch RSS XML
XmlTextReader udBrudRSS = new XmlTextReader("http://myblog.com/rss");
//Create new XML document
XmlDocument doc = new XmlDocument();
//Load in our remote XML into our XML document
doc.Load(udBrudRSS);
//Select our nodes we want with some xPath
XmlNodeList rssItems = doc.SelectNodes("//product");
}
For example in my XML there are product types and I only would like to show data only about Jackets product types.
<product><title>XXXX</title><type>Jackets</type><image>.....</image><link>.....</link></product>
Is this possible with the current XML reader I am working on?
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.
Continue discussion
Filtering XML Output
Hello,
I am using an XML reader like below. I would like to filter results according to XML data.
@{
//Fetch RSS XML
XmlTextReader udBrudRSS = new XmlTextReader("http://myblog.com/rss");
//Create new XML document
XmlDocument doc = new XmlDocument();
//Load in our remote XML into our XML document
doc.Load(udBrudRSS);
//Select our nodes we want with some xPath
XmlNodeList rssItems = doc.SelectNodes("//product");
}
For example in my XML there are product types and I only would like to show data only about Jackets product types.
<product>
<title>XXXX</title>
<type>Jackets</type>
<image>.....</image>
<link>.....</link>
</product>
Is this possible with the current XML reader I am working on?
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.