<xs:element name="PARTED" default="Y" minOccurs="0" maxOccurs="1">
I Have tag like this in my XML file .
i expect the default value y if in my xml file i use it like <PARTED/>. but how can i retrieve the value of attribute default.
I tried to acess it from my startelement method as i parses using sax parser. I tried to get value using attribute object .getVlaue(name of the attribute)
But it returned null value. Where am i going wrong?
"public void startElement(
String uri, String localName, String qname,Attributes attributes) "