Sax2 Parser: cannot store attributes
0 posts in topic
Flat View  Flat View

Posted By:   mc71_mc71
Posted On:   Thursday, February 20, 2003 12:28 AM


I am a newbie to Java and Xml. I have problems in saving the attributes after the callback to the sax2 method is done:

public void startElement(String uri, String localName,
String qName, Attributes atts)

Attributes lastatts = atts; <--- This won't work

How can I copy the contents of atts? Do I have to clone? if yes can you show me the implementation. Thanks


About | Sitemap | Contact