Loading...
Logo
Processing Forum
Hello helpful souls, 

Can anyone tell me how I might be able to get the content between two specific tags, for example:

<name>Radiohead</name>

How would i search an xml file for the <name> tag and retrieve the string"radiohead"? is there a function in XMLElement?


Any help much appreciated.


-Matt

Replies(2)

use getContent() to extract the name then compare to desired string with  equals()
As said. You have no direct access to a tag, partly because you can have the same tag several times in a file. In general, you iterate over the file, until you find the tag you want.