List of usage examples for org.w3c.dom Attr getUserData
public Object getUserData(String key);
From source file:org.apache.axis2.jaxws.message.util.impl.XMLStreamReaderFromDOM.java
public String getAttributeType(int index) { String attrType = null;//from w w w. j av a2s . c om Attr attr = (Attr) getAttributes().get(index); TypeInfo typeInfo = attr.getSchemaTypeInfo(); if (typeInfo != null) { attrType = typeInfo.getTypeName(); } if (attrType == null) { try { attrType = (String) attr.getUserData(SAAJConverter.OM_ATTRIBUTE_KEY); if (log.isDebugEnabled()) { log.debug("Retrieving attrType from UserData: " + attrType); } } catch (Exception e) { if (log.isDebugEnabled()) { log.debug("An error occured while getting attrType: " + e.getMessage()); } } } return attrType; }