You have an org.xml.sax.Attributes object? See if it can be cast to org.xml.sax.ext.Attributes2. If it can, then there are methods to tell whether an attribute came from a DTD default. Read the API docs for Attributes2 for more information.
Joined: Oct 08, 2008
Unable to cast to Attributes2 am getting classcastException. Even I tried for Attributes2Impl. Please assist me how to proceed further