XML DOM / ASP 3.0
Hello World.
I'm trying to format and send XML styled text and table layouts to a browser using the XML DOM and ASP 3.0.
I need to:
1. Specify a section of an XML document by its top level node
2. Define the formatting for individual nodes within the section
3. Iterate down the tree to the leaf node presenting any text, lists, links, file references, images or table definitions to the browser and formatting as necessary
4. Fin
It sounds so simple, I'm sure I must be missing something really obvious.
I have the formatting and section specification sorted, I just can't figure out how to use the DOM to iterate down to the leaf node of each child node, writing the text to the screen as I go along, and then move to the next sibling and do the same.
I have tried subroutines within subroutines within for next loops, all to no avail. Can anyone help?? If only for the sake of my sanity.
Muchas gracias!
|