J
johkar
Assume XML parent element has lots of children that are all unique
element names. Is the only way to loop through them to use a wildcard
(*) for the element name in the for-each or apply-templates call? I
am looking for efficiency because I am going to have to do this many
times in the XSLT and there could be hundreds of child element names
for any given parent element. Note, I don't have control over the XML
tree structure.
Xpath: /category/businesstype/*
<category>
<businesstype>
<specialty>Some text</specialty>
<bigbox>Some text></bigbox>
<internetonly>Some text</internetonly>
...many many more nodes
</businesstype>
</category>
Any pointers appreciated.
element names. Is the only way to loop through them to use a wildcard
(*) for the element name in the for-each or apply-templates call? I
am looking for efficiency because I am going to have to do this many
times in the XSLT and there could be hundreds of child element names
for any given parent element. Note, I don't have control over the XML
tree structure.
Xpath: /category/businesstype/*
<category>
<businesstype>
<specialty>Some text</specialty>
<bigbox>Some text></bigbox>
<internetonly>Some text</internetonly>
...many many more nodes
</businesstype>
</category>
Any pointers appreciated.