wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes How to add a attr in a node suing SAX? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to add a attr in a node suing SAX?" Watch "How to add a attr in a node suing SAX?" New topic
Author

How to add a attr in a node suing SAX?

Yu Chen
Greenhorn

Joined: Feb 11, 2002
Posts: 17
Hi,
I use a defaultHandler to read in a source xml, and then a TransformerHandler to write into a StreamResult.
I'd like to have a additional attribute in a certain tag, for example,
<tag attr1="value1"> -> <tag attr1="value1", attr2="value2">
How to do it using SAX?
Thanks in advance.
-yc
[ February 17, 2004: Message edited by: Yu Chen ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to add a attr in a node suing SAX?
 
Similar Threads
JSTL and collections
xml transformation
El Expression problem
Converting request parameters to JSP tag-file attributes
tag lib question - urgent