Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


reading in a nonstandard XML file and displaying contents

From: javelin <jmevalentin@-----.--->
To: NULL
Date: 2/4/2008 5:31:00 AM
I've "manually" created an XML file in the following format:

<notes>
   <note>
      <note_date>1/1/2008</note_date>
      <note_text>This is the FIRST note</note_text>
      <createdby>John Doe</createdby>
   </note>
   <note>
      <note_date>1/15/2008</note_date>
      <note_text>This is the SECOND note</note_text>
      <createdby>Donald Trump</createdby>
   </note>
   <note>
      <note_date>2/2/2008</note_date>
      <note_text>This is the THIRD note</note_text>
      <createdby>Jane Doe</createdby>
   </note>
</notes>

I can easily load and screen print the whole file, but I need to
format it like a table, each <note> tag being a separate row, each
child element being a field. I thought of XSL, but I only know how to
hard code an XSL stylesheet into the XML file. It would have to be
dynamic, since I have a different notes xml file for each client
record, and I may have a different stylesheet for each one.

Can anyone give me the simplified version of how to handle this (with
or without stylesheets)?

Thx!


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