Also if you want to check the full xml format, try the developer tools in Chrome(F12) since your <x:root> or <x:element> cannot be render by your browser
On Mon, Feb 9, 2015 at 11:32 AM, Manuranga Perera <[email protected]> wrote: > please try printing toStirng() > > On Mon, Feb 9, 2015 at 11:25 AM, Udara Liyanage <[email protected]> wrote: > >> Hi, >> >> I tried creating a sample OMElement using jaggery as below. However when >> I print root element it shows just "{}". No sum elements or text are >> desplayed. What Do I miss here? >> >> >> var omfac = org.apache.axiom.om.OMAbstractFactory; >> var factory = omfac.getOMFactory(); >> var ns1 = factory.createOMNamespace("bar","x"); >> var root = factory.createOMElement("root", ns1); >> var elt1 = factory.createOMElement("element", ns1); >> >> var text = factory.createOMText(elt1,"element content"); >> >> >> >> var text1 = factory.createOMText("udara"); >> elt1.addChild(text1); >> root.addChild(elt1); >> >> >> -- >> >> Udara Liyanage >> Software Engineer >> WSO2, Inc.: http://wso2.com >> lean. enterprise. middleware >> >> web: http://udaraliyanage.wordpress.com >> phone: +94 71 443 6897 >> > > > > -- > With regards, > *Manu*ranga Perera. > > phone : 071 7 70 20 50 > mail : [email protected] > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Senduran * Software Engineer, WSO2, Inc.; http://wso2.com/ <http://wso2.com/> Mobile: +94 77 952 6548
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
