Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to add a attr in a node suing SAX?

 
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