Code example for Attributes

Methods: getLength

0
		 
		public String getName() {
			return name;
		} 
		public int getAttributeCount() { 
			return attributes.getLength();
		} 
		public boolean hasAttribute(String name) {
			return getAttribute(name) != null;
		} 
		public String getAttribute(String name) {
			String value = attributes.getValue(name);
			// return value; 
			return value == null ? null : Normalizer.normalize(value, Form.NFC);
		} 
	} 
	 
	protected class XmlHandler extends DefaultHandler {
		 
		private Element element = new Element();