Package org.apache.axiom.om

Examples of org.apache.axiom.om.OMDocument.build()


    protected OMInformationItem createInformationItem() throws Exception {
        InputStream in = TestDigest.class.getResourceAsStream(file);
        try {
            OMDocument document = OMXMLBuilderFactory.createOMBuilder(
                    metaFactory.getOMFactory(), in).getDocument();
            document.build();
            return document;
        } finally {
            in.close();
        }
    }
View Full Code Here


    protected void runTest() throws Throwable {
        OMFactory factory = metaFactory.getOMFactory();
        OMDocument document = OMXMLBuilderFactory.createOMBuilder(factory,
                new StringReader("<?pi data?><root>text</root>")).getDocument();
        if (complete) {
            document.build();
        }
        OMProcessingInstruction firstChild = (OMProcessingInstruction)document.getFirstOMChild();
        OMElement documentElement;
        if (accessDocumentElement) {
            documentElement = document.getOMDocumentElement();
View Full Code Here

        // If possible, build the parent (i.e. the OMDocument) to make sure that the entire message is read.
        // If the transport doesn't handle the end of the message properly, then this problem
        // will show up here.
        OMDocument document = (OMDocument)envelope.getParent();
        if (document != null) {
            document.build();
        } else {
            envelope.build();
        }
       
        // TODO: quick & dirty hack to force expansion of OMSourceElement payloads
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.