public void setXMLSchemas(Object[] schemas) throws XMLPlatformException { if ((null == schemas) || (schemas.length == 0)) { return; } try { documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, XML_SCHEMA); documentBuilderFactory.setAttribute(JAXP_SCHEMA_SOURCE, schemas); } catch (IllegalArgumentException e) { // The attribute isn't supported so do nothing } catch (Exception e) { XMLPlatformException.xmlPlatformErrorResolvingXMLSchemas(schemas, e); } }
public void setXMLSchemas(Object[] schemas) throws XMLPlatformException { if ((null == schemas) || (schemas.length == 0)) { return; } try { documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, XML_SCHEMA); documentBuilderFactory.setAttribute(JAXP_SCHEMA_SOURCE, schemas); } catch (IllegalArgumentException e) { // The attribute isn't supported so do nothing } catch (Exception e) { XMLPlatformException.xmlPlatformErrorResolvingXMLSchemas(schemas, e); } }
public void setXMLSchemas(Object[] schemas) throws XMLPlatformException { if ((null == schemas) || (schemas.length == 0)) { return; } try { documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, XML_SCHEMA); documentBuilderFactory.setAttribute(JAXP_SCHEMA_SOURCE, schemas); } catch (IllegalArgumentException e) { // The attribute isn't supported so do nothing } catch (Exception e) { XMLPlatformException.xmlPlatformErrorResolvingXMLSchemas(schemas, e); } }
/** * Sets XML Schema(s) for the parser. * * @param schemas XML schemas to set * @throws XMLPlatformException exception occurred while setting XMLSchema(s) */ @Override public void setXMLSchemas(Object[] schemas) throws XMLPlatformException { if ((null == schemas) || (schemas.length == 0)) { return; } if (null == documentBuilderFactory) { loadDocumentBuilderFactory(); } try { documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, XML_SCHEMA); documentBuilderFactory.setAttribute(JAXP_SCHEMA_SOURCE, schemas); } catch (IllegalArgumentException e) { // The attribute isn't supported so do nothing } catch (Exception e) { XMLPlatformException.xmlPlatformErrorResolvingXMLSchemas(schemas, e); } }
/** * Sets XML Schema(s) for the parser. * * @param schemas XML schemas to set * @throws XMLPlatformException exception occurred while setting XMLSchema(s) */ public void setXMLSchemas(Object[] schemas) throws XMLPlatformException { if ((null == schemas) || (schemas.length == 0)) { return; } if (null == documentBuilderFactory) { loadDocumentBuilderFactory(); } try { documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, XML_SCHEMA); documentBuilderFactory.setAttribute(JAXP_SCHEMA_SOURCE, schemas); } catch (IllegalArgumentException e) { // The attribute isn't supported so do nothing } catch (Exception e) { XMLPlatformException.xmlPlatformErrorResolvingXMLSchemas(schemas, e); } }