public Object convertAttributeValue(Element a) { String type = a.getAttributeNS(XSI_NS, "type"); if ((type == null) || ("".equals(type))) { System.out.println( "----> convertAttributeValue " + type + " " + a.getFirstChild().getNodeValue()); return a.getFirstChild().getNodeValue(); } else { System.out.println("----> convertAttributeValue " + type); return c.convertTypedLiteral(type, "\"" + a.getFirstChild().getNodeValue() + "\""); } }
public Object convertTypedLiteral(String datatype, Object value) { return c.convertTypedLiteral(datatype, value); }