Example usage for javax.xml XMLConstants W3C_XPATH_DATATYPE_NS_URI

List of usage examples for javax.xml XMLConstants W3C_XPATH_DATATYPE_NS_URI

Introduction

In this page you can find the example usage for javax.xml XMLConstants W3C_XPATH_DATATYPE_NS_URI.

Prototype

String W3C_XPATH_DATATYPE_NS_URI

To view the source code for javax.xml XMLConstants W3C_XPATH_DATATYPE_NS_URI.

Click Source Link

Document

W3C XPath Datatype Namespace URI.

Usage

From source file:org.betaconceptframework.astroboa.engine.jcr.io.contenthandler.ImportContentHandler.java

private void importAttributes(Attributes atts) throws SAXException {

    if (atts != null && atts.getLength() > 0) {
        for (int i = 0; i < atts.getLength(); i++) {
            //Ignore attributes with specific namespaces
            String uri = atts.getURI(i);

            if (StringUtils.equals(uri, XMLConstants.XMLNS_ATTRIBUTE_NS_URI)
                    || StringUtils.equals(uri, XMLConstants.XML_NS_URI)
                    || StringUtils.equals(uri, XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI)
                    || StringUtils.equals(uri, XMLConstants.W3C_XML_SCHEMA_NS_URI)
                    || StringUtils.equals(uri, XMLConstants.W3C_XPATH_DATATYPE_NS_URI)) {
                continue;
            }//from   ww w  .  j av  a  2s .c o m

            addAttributeToImportedEntity(atts.getLocalName(i), atts.getValue(i));
        }
    }

}