Sir,
I am doing the task on fetching the contents from the xml file.I read the contents from other node but in first the contents are in the following form.
<NEWSFEED>
<ARTICLE ID="665875" POSTING_DATE="25-Jun-2012" POSTING_TIME="06:00" ARCHIVE_DATE="18-Jun-2013">
<NEWS_TYPE>News</NEWS_TYPE>
<HEADLINE>Diabetes Can Make a Comeback After Weight-Loss Surgery: Study</HEADLINE>
</ARTICLE>
</NEWSFEED>
I want to slice those contents from following line of xml
<ARTICLE ID="665875" POSTING_DATE="25-Jun-2012" POSTING_TIME="06:00" ARCHIVE_DATE="18-Jun-2013">
Thanks
Try these. Create XmlDocument object to keep the xml file:
Next use the load method to load the XML document from the specified stream.
Use the method GetElementsByTagName() to obtain the addresses of a collection of elements that match the specified name.
XmlNodeList represents an ordered collection of nodes under the specified node.