dumping XML document

"Kralidis,Tom [Burlington]" <[email protected]>
Newsgroups gmane.comp.jakarta.taglibs.user
Message-ID <2576812186CDD411BF1500508B6DCE950D17FA39@ecnwri1.ontario.int.ec.gc.ca>
Hi,

Using tomcat 6.0.0, I am using the following fragment to fetch a remote
XML document:

<c:catch var="caught">
 <c:import url="${param.url}" varReader="xmlSource">
  <x:parse var="doc" xml="${xmlSource}" scope="page" />
 </c:import>
</c:catch>

Using <x:out select="$doc/....."/> allows for fetching of values of
elements / attributes as expected.  I have encountered a situation where
I would like to fetch and store the entire document in a database.

Trying <x:out select"$doc"/> outputs the entire XML document without the
element names, etc. (i.e. only the content within the elements /
attributes).

Any idea on what's the best way to achieve this?

Thanks

..Tom


=========================
Tom Kralidis
Senior Systems Scientist
Environment Canada
Tel: +01-905-336-4409
http://www.ec.gc.ca/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.