PDA

View Full Version : How to format this XML?


fred2028
09-21-2009, 04:47 PM
http://area51.fredfx.com/data.xml

Under each <Event> tag, there are different tags. What's a good way to format this (and other XML files similar to this) so that it can be displayed nicely in a page? I can't find a pattern or anything that would allow me to use a loop with XSL.

shyam
09-21-2009, 06:58 PM
have a look into the xsl:for-each (http://www.w3schools.com/Xsl/xsl_for_each.asp)

fred2028
09-21-2009, 07:00 PM
have a look into the xsl:for-each (http://www.w3schools.com/Xsl/xsl_for_each.asp)
Yes I have seen it, but my point was that each Event contains either no children or children that do not follow a pattern, like each Event's children tags can vary, so how would I go about formatting it/