- Make sure FileName property of the TXMLDocument points to our XML file.
- Set Active to True
- Find the first <item> ("meat") node
- Iterate through all the <item> nodes and grab the information they cary.
- Add each <item> node's value to ListView
Maybe only the next line can be confusing: StartItemNode := XMLDoc.DocumentElement.ChildNodes.First.ChildNodes.FindNode('item') ;
The DocumentElement property of the XMLDoc provides access to the root node of the document. This root node is the <rss> element. Next, ChildNodes.First returns the only child node to the <rss> element, which is the <channel> node. Now, ChildNodes.FindNode('item') finds the first "meat" node. Once we have the first <item> node we simply iterate through all the "meat" nodes in the document. The NextSibling method returns the next child of a nodes parent.
That's it. Make sure you download the full source. And of course, feel free and encouraged to post any comments to this article on our Delphi Programming Forum.

