Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to add a attr in a node suing SAX?  RSS feed

 
Yu Chen
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!