D
Darrel
I think I am in syntax hell. ;o)
Here's some XML that I'm trying to grab some text from:
<?xml version="1.0"?>
<!--Created on 10/16/2004 8:05:57 PM-->
<menuItems>
<menuItem>
<pageID>2</pageID>
<pageName>Tax and Accounting</pageName>
<menuCategory>tax</menuCategory>
<menuItem>
<pageID>3</pageID>
<pageName>Services and Rates</pageName>
<menuCategory />
</menuItem>
What I want to do is select the menuCategory text of any parent of the
menuItem who's pageID is set to specific variable.
So, if I pass a pageID of '3' to the above, I want to look up all of it's
parents until I find one with a menuCategory set to a value other than
empty.
I thought I could just use an expression, but now realize that I probably
need to use an iterator to grab and entire node, check the first
menuCategory for a value, if empty, navigate up, check again, and repeat
until I get a value.
Does that sound like the right direction?
Here's some XML that I'm trying to grab some text from:
<?xml version="1.0"?>
<!--Created on 10/16/2004 8:05:57 PM-->
<menuItems>
<menuItem>
<pageID>2</pageID>
<pageName>Tax and Accounting</pageName>
<menuCategory>tax</menuCategory>
<menuItem>
<pageID>3</pageID>
<pageName>Services and Rates</pageName>
<menuCategory />
</menuItem>
What I want to do is select the menuCategory text of any parent of the
menuItem who's pageID is set to specific variable.
So, if I pass a pageID of '3' to the above, I want to look up all of it's
parents until I find one with a menuCategory set to a value other than
empty.
I thought I could just use an expression, but now realize that I probably
need to use an iterator to grab and entire node, check the first
menuCategory for a value, if empty, navigate up, check again, and repeat
until I get a value.
Does that sound like the right direction?