|
next
|
 Subject: Set the value of an attribute in a SAX Parser - StartElement Author: Piyush Nahata Date: 26 Sep 2008 06:43 AM
|
Hi,
I'm using a SAX Parser to parse my XML document. Based on some business logic, I want to change the value of an attribute and pass it on for further parsing.
For instance, my code looks like
<pre>
public void startElement(String strUri, String strLocalName, String strQName, Attributes atts) throws SAXException {
if(something) {
handler.startElement(strUri, strLocalName, strQName, atts);
}
}
</pre>
Here, handler is a content handler for another Parser. Will it be possible for me to be able to edit the attributes before it is being sent for further processing.
Thanks in advance.
|
|
|