Zahida Parveen wrote:
Hi,
Can any one please help me by guiding how can I parse an xsl file through
Java Servlets and replace a node's attribute in it.
There are many choices. You can use SAX or DOM or XSLT or JDOM etc to do
that from a servlet. You can also use JSTL from JSPs.
Loading a whole XML tree in memory to change just an attribute is not
eficient. I'd use SAX for that but if you are a begginer try plain DOM
manipulation. There are many (J)DOM tutorials on the web.
hth,
--
Manos Batsis
_ __ __ __
/ |/ /__ / /____ __ _ ___ _____/ /_
/ / -_) __(_-</ ' Y _ `/ __/ __/
/_/|_/\__/\__/___/_/_/_|_,_/_/ \__/
http://www.netsmart.gr
mailto:mbatsisSPAM_TRAP(_at_)netsmart(_dot_)gr
tel:+302103240940
http://forte.netsmart.gr/foaf/manos_foaf.rdf
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list