Hello all,

I have an existing XML file on the server that needs to be read, written to
and saved. I am using Xalan and Xerces. The XML looks something like:

<section id="abc">
...<section id="abc.a">
......<section id="abc.a.1">
.........<!-- inserted xml should go here -->
......</section>
......<section id="abc.a.2">
......</section>
...</section>
...<section id="abc.b">
...</section>
...<section id="abc.c">
...</section>
</section>

Then perhaps I need to insert the following text/xml in at
//section[@id='abc.a.2']:
<page>
    <content>aaa.xml</content>
</page>

The file needs to saved over the original with the new text inserted in the
appropriate place. Then the file will get transformed with XSLT to HTML to
be sent back to the browser.

What is the best way to handle this? I assume this is a common thing and was
hoping there is a "best way" --  and/or can someone point me to an example
of this somewhere?

Thanks,
Rob

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to