Search in sources :

Example 1 with XML

use of com.intel.mtwilson.xml.XML in project OpenAttestation by OpenAttestation.

the class TrustAssertion method readXml.

/**
     * See also {@code XML.parseDocumentElement} in mtwilson-util-xml
     */
private Element readXml(String xmlDocument) throws ParserConfigurationException, SAXException, IOException {
    XML xml = new XML();
    xml.setSchemaPackageName("xsd");
    xml.addSchemaLocation("http://docs.oasis-open.org/security/saml/v2.0/saml-schema-protocol-2.0.xsd");
    xml.addSchemaLocation("http://docs.oasis-open.org/security/saml/v2.0/saml-schema-assertion-2.0.xsd");
    xml.addSchemaLocation("http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd");
    xml.addSchemaLocation("http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd");
    Element myXml = xml.parseDocumentElement(xmlDocument);
    return myXml;
}
Also used : XML(com.intel.mtwilson.xml.XML) Element(org.w3c.dom.Element)

Aggregations

XML (com.intel.mtwilson.xml.XML)1 Element (org.w3c.dom.Element)1