Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Getting the Type of an XML Node in a TPL ?
Andy Knipp
I use a container that has an or clause, so that the user can add any of 5 different items in any order. It creates XML like this:
[html]
Anchor
Stuff
ANCHOR
FLASH
ANCHOR
ANCHOR
HTNML CODE
ANCHOR
HEADER
ANCHOR
NAV MENU
ANCHOR
LINK
imageanchor
Anchor2
<p>Paragraph</p>
[/html]
So, I want to iterate through container, for each choice and generate the appropriate HTML.
But I am not certain how to tell if a Choice is a Paragraph, Image, etc ?
I was trying
[html]
[/html]
but that does not seem correct since that is not the value, but the name of the sub-element.
Tips/Pointers/RTFMs appreciated.
Andy
Find more posts tagged with
Comments
There are no comments yet