Package org.apache.xerces.dom3

Examples of org.apache.xerces.dom3.DOMErrorHandler


     * <code>DOMBuilder</code> will pass the public and system IDs to the
     * entity resolver, which can then specify the actual source of the
     * entity.
     */
    public DOMEntityResolver getEntityResolver() {
      DOMEntityResolver domEntityResolver = null;
        try {
            DOMEntityResolver entityResolver = (DOMEntityResolver)fConfiguration.getProperty(ENTITY_RESOLVER);
            if (entityResolver != null &&
                entityResolver instanceof DOMEntityResolverWrapper) {
                domEntityResolver = ((DOMEntityResolverWrapper)entityResolver).getEntityResolver();
            }
        }
View Full Code Here


     * <code>DOMBuilder</code> will pass the public and system IDs to the
     * entity resolver, which can then specify the actual source of the
     * entity.
     */
    public DOMEntityResolver getEntityResolver() {
        DOMEntityResolver domEntityResolver = null;
        try {
            DOMEntityResolver entityResolver = (DOMEntityResolver)fConfiguration.getProperty(ENTITY_RESOLVER);
            if (entityResolver != null &&
                entityResolver instanceof DOMEntityResolverWrapper) {
                domEntityResolver = ((DOMEntityResolverWrapper)entityResolver).getEntityResolver();
            }
        }
View Full Code Here

    public String saveXML(Node snode)
                          throws DOMException {
        if ( snode != null &&
             getOwnerDocument() != snode.getOwnerDocument() )
            throw new DOMException(DOMException.WRONG_DOCUMENT_ERR,"Node "+snode.getNodeName()+" does not belongs to this Document.");
        DOMImplementationLS domImplLS = (DOMImplementationLS)DOMImplementationImpl.getDOMImplementation();
        DOMWriter xmlWriter = domImplLS.createDOMWriter();
        if (snode == null) {
            snode = this;
        }
        return xmlWriter.writeToString(snode);
    }
View Full Code Here

    public String saveXML(Node snode)
                          throws DOMException {
        if ( snode != null &&
             getOwnerDocument() != snode.getOwnerDocument() )
            throw new DOMException(DOMException.WRONG_DOCUMENT_ERR,"Node "+snode.getNodeName()+" does not belongs to this Document.");
        DOMImplementationLS domImplLS = (DOMImplementationLS)DOMImplementationImpl.getDOMImplementation();
        DOMWriter xmlWriter = domImplLS.createDOMWriter();
        if (snode == null) {
            snode = this;
        }
        return xmlWriter.writeToString(snode);
    }
View Full Code Here

        throws XNIException, IOException {

        // resolve entity using DOM entity resolver
        if (fEntityResolver != null) {
            try {
                DOMInputSource inputSource =
                    fEntityResolver.resolveEntity(publicId, systemId, baseSystemId);
                if (inputSource != null) {
                    publicId = inputSource.getPublicId();
                    systemId = inputSource.getSystemId();
                    InputStream byteStream = inputSource.getByteStream();
                    Reader charStream = inputSource.getCharacterStream();
                    String encoding = inputSource.getEncoding();
                    XMLInputSource xmlInputSource =
                        new XMLInputSource(publicId, systemId, baseSystemId);
                    xmlInputSource.setByteStream((InputStream)byteStream);
                    xmlInputSource.setCharacterStream(charStream);
                    xmlInputSource.setEncoding(encoding);
View Full Code Here

        throws XNIException, IOException {

        // resolve entity using DOM entity resolver
        if (fEntityResolver != null) {
            try {
                DOMInputSource inputSource =
        resourceIdentifier == null ?
                    fEntityResolver.resolveEntity(null, null, null) :
                    fEntityResolver.resolveEntity(resourceIdentifier.getPublicId(), resourceIdentifier.getLiteralSystemId(), resourceIdentifier.getBaseSystemId());
                if (inputSource != null) {
                    String publicId = inputSource.getPublicId();
                    String systemId = inputSource.getSystemId();
                    String baseSystemId = inputSource.getBaseURI();
                    InputStream byteStream = inputSource.getByteStream();
                    Reader charStream = inputSource.getCharacterStream();
                    String encoding = inputSource.getEncoding();
                    XMLInputSource xmlInputSource =
                        new XMLInputSource(publicId, systemId, baseSystemId);
                    xmlInputSource.setByteStream((InputStream)byteStream);
                    xmlInputSource.setCharacterStream(charStream);
                    xmlInputSource.setEncoding(encoding);
View Full Code Here

                          throws DOMException {
        if ( snode != null &&
             getOwnerDocument() != snode.getOwnerDocument() )
            throw new DOMException(DOMException.WRONG_DOCUMENT_ERR,"Node "+snode.getNodeName()+" does not belongs to this Document.");
        DOMImplementationLS domImplLS = (DOMImplementationLS)DOMImplementationImpl.getDOMImplementation();
        DOMWriter xmlWriter = domImplLS.createDOMWriter();
        if (snode == null) {
            snode = this;
        }
        return xmlWriter.writeToString(snode);
    }
View Full Code Here

                          throws DOMException {
        if ( snode != null &&
             getOwnerDocument() != snode.getOwnerDocument() )
            throw new DOMException(DOMException.WRONG_DOCUMENT_ERR,"Node "+snode.getNodeName()+" does not belongs to this Document.");
        DOMImplementationLS domImplLS = (DOMImplementationLS)DOMImplementationImpl.getDOMImplementation();
        DOMWriter xmlWriter = domImplLS.createDOMWriter();
        if (snode == null) {
            snode = this;
        }
        return xmlWriter.writeToString(snode);
    }
View Full Code Here

TOP

Related Classes of org.apache.xerces.dom3.DOMErrorHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.