Filtering On Node Name


I have an XML document for news items. It has a tag which has 3 child nodes , and , of which there can be multiples with the one tag.For example:


What I want to be able to do is branch to a given template, depending on the name of the node in the order that they displayed, within the tag. I have tried using and , but where I keep getting stuck is in testing for the name of the current node. I could, of course, use a generic tag called, and let it have an attribute called “type” Then I could evaluate the branching the attribute, but, in a way, this defeats the purpose of using XML. What would you suggest?


Just use the call and wildcard characters:

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: