Package org.apache.xerces.dom

Examples of org.apache.xerces.dom.PSVIDocumentImpl


         // construct a DOM document (used by psychopath engine as XPath XDM
         // instance). A PSVI DOM is constructed, to comply to PsychoPath
         // architecture. This doesn't seem to affect CTA psychopath evaluations.
         // CTA spec, doesn't require a typed XDM tree.
         // relook...
         Document document = new PSVIDocumentImpl();
        
         Element elem = document.createElementNS(element.uri, element.rawname);
         for (int attrIndx = 0; attrIndx < attributes.getLength(); attrIndx++) {        
            PSVIAttrNSImpl attrNode = new PSVIAttrNSImpl((PSVIDocumentImpl)document,
                                                          attributes.getURI(attrIndx),
                                                          attributes.getQName(attrIndx));
            attrNode.setNodeValue(attributes.getValue(attrIndx));
            elem.setAttributeNode(attrNode);
         }
      
         document.appendChild(elem);
        
         // construct parameter values for psychopath processor
         Map psychoPathParams = new HashMap();
         psychoPathParams.put("XPATH2_NS_CONTEXT", fXPath2NamespaceContext);
         initDynamicContext(null, document, psychoPathParams);
View Full Code Here


                fDocumentImpl.setInputEncoding (encoding);
                // set documentURI
                fDocumentImpl.setDocumentURI (locator.getExpandedSystemId ());
            }
            else if (fDocumentClassName.equals (PSVI_DOCUMENT_CLASS_NAME)) {
                fDocument = new PSVIDocumentImpl();
                fDocumentImpl = (CoreDocumentImpl)fDocument;
                fStorePSVI = true;
                // REVISIT: when DOM Level 3 is REC rely on Document.support
                //          instead of specific class
                // set DOM error checking off
View Full Code Here

        this.fDocumentImpl.setInputEncoding(paramString);
        this.fDocumentImpl.setDocumentURI(paramXMLLocator.getExpandedSystemId());
      }
      else if (this.fDocumentClassName.equals("org.apache.xerces.dom.PSVIDocumentImpl"))
      {
        this.fDocument = new PSVIDocumentImpl();
        this.fDocumentImpl = ((CoreDocumentImpl)this.fDocument);
        this.fStorePSVI = true;
        this.fDocumentImpl.setStrictErrorChecking(false);
        this.fDocumentImpl.setInputEncoding(paramString);
        this.fDocumentImpl.setDocumentURI(paramXMLLocator.getExpandedSystemId());
View Full Code Here

TOP

Related Classes of org.apache.xerces.dom.PSVIDocumentImpl

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.