Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: reading in a nonstandard XML file and displaying contents reading in a nonstandard XML file and displaying contentsTo: 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!
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
