Package org.apache.xmlbeans

Examples of org.apache.xmlbeans.XmlCursor.xmlText()


       
        x = XmlObject.Factory.parse( "<foo><boo x=\"y\">bar</boo></foo>" );
       
        cTo = navDoc( x, "dt" );
       
        Assert.assertTrue( cTo.xmlText().equals( "<boo x=\"y\">bar</boo>" ) );

        // Tests fragment saving and loading
       
        x = XmlObject.Factory.parse( "<foo>Eric</foo>" );
       
View Full Code Here


       
        x = XmlObject.Factory.parse( "<foo>Eric</foo>" );
       
        cTo = navDoc( x, "dt" );

        x = XmlObject.Factory.parse( cTo.xmlText() );
       
        cTo = navDoc( x, "" );
       
        Assert.assertTrue( cTo.getTextValue().equals( "Eric" ) );
View Full Code Here

       
        options.put(
            XmlOptions.SAVE_SYNTHETIC_DOCUMENT_ELEMENT,
            new QName( null, "bar" ) );
       
        x = XmlObject.Factory.parse( cTo.xmlText( options ) );
       
        cTo = navDoc( x, "" );
       
        Assert.assertTrue( cTo.xmlText().equals( "<bar>Eric</bar>" ) );
View Full Code Here

       
        x = XmlObject.Factory.parse( cTo.xmlText( options ) );
       
        cTo = navDoc( x, "" );
       
        Assert.assertTrue( cTo.xmlText().equals( "<bar>Eric</bar>" ) );

        // test save where I replace the name of the document
       
        x = XmlObject.Factory.parse( "<foo>Eric</foo>" );
       
View Full Code Here

       
        options.put(
            XmlOptions.SAVE_SYNTHETIC_DOCUMENT_ELEMENT,
            new QName( null, "bar" ) );
       
        x = XmlObject.Factory.parse( cTo.xmlText( options ) );
       
        cTo = navDoc( x, "" );
       
        Assert.assertTrue(
            cTo.xmlText().equals( "<bar><foo>Eric</foo></bar>" ) );
View Full Code Here

        x = XmlObject.Factory.parse( cTo.xmlText( options ) );
       
        cTo = navDoc( x, "" );
       
        Assert.assertTrue(
            cTo.xmlText().equals( "<bar><foo>Eric</foo></bar>" ) );

        //
        //
        //
       
View Full Code Here

            if (qname == null) {
                xmlCursor.toFirstChild();
                qname = xmlCursor.getName();
            }
            if (qname.getLocalPart().equals("openejb-jar")) {
                ejbModule.getAltDDs().put("openejb-jar.xml", xmlCursor.xmlText());
            } else
            if (qname.getLocalPart().equals("ejb-jar") && qname.getNamespaceURI().equals("http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0")) {
                ejbModule.getAltDDs().put("geronimo-openejb.xml", xmlCursor.xmlText());
            }
        }
View Full Code Here

            }
            if (qname.getLocalPart().equals("openejb-jar")) {
                ejbModule.getAltDDs().put("openejb-jar.xml", xmlCursor.xmlText());
            } else
            if (qname.getLocalPart().equals("ejb-jar") && qname.getNamespaceURI().equals("http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0")) {
                ejbModule.getAltDDs().put("geronimo-openejb.xml", xmlCursor.xmlText());
            }
        }

        // Read in the deploument desiptor files
        ReadDescriptors readDescriptors = new ReadDescriptors();
View Full Code Here

    {
        XmlCursor cur = newCursorForce();

        try
        {
            return cur.xmlText(makeInnerOptions(options));
        }
        finally
        {
            cur.dispose();
        }
View Full Code Here

    {
        XmlCursor cur = newCursorForce();

        try
        {
            return cur.xmlText(makeInnerOptions(options));
        }
        finally
        {
            cur.dispose();
        }
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.