Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Options for looping through children with different element names

From: johkar <nosendjunk@---.--->
To: NULL
Date: 4/1/2009 8:09:00 PM
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.







transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent