Well, I am generating this from Velocity:
<string1> Hello </string1> <string2> Hello </string2> But it comes back as a String in java. So I want to embed that xml directly into an OMElement like this: <stringContainer> <string1> Hello </string1> <string2> Hello </string2> ... </stringContainer> Roshan Punnoose Phone: 301-497-6039 ________________________________ From: Sameera Madushan [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 7:33 AM To: [email protected] Subject: Re: AXIOM question Hi Rohan, Your problem is not very clear to me. But I guess, you want to build a OMElement that hold your stringContainer. sample code OMFactory factory = OMAbstractFactory.getOMFactory(); OMElement stringContainer = factory.createOMElement("stringContainer",null); OMElement string1 = factory.createOMElement("string1",null); OMText txtString1 = factory.createOMText("Hello"); string1.addChild(txtString1); OMElement string2 = factory.createOMElement("string2",null); OMText txtString2 = factory.createOMText("Hello"); string2.addChild(txtString2); stringContainer.addChild(string1); stringContainer.addChild(string2); System.out.println(stringContainer.toString()); If this is not the answer to your problem, let me know Sameera. On 12/21/06, Punnoose, Roshan <[EMAIL PROTECTED] > wrote: I'm not sure if asking on this forum for AXIOM questions is right or not... I want to take a String of xml: <string1> Hello </string1> <string2> Hello </string2> And add it to the OMElement xml container: <stringContainer> ... </stringContainer> To look like <stringContainer> <string1> Hello </string1> <string2> Hello </string2> ... </stringContainer> Any ideas? (It seems really simple, but it is eluding me) Roshan Punnoose Phone: 301-497-6039 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BEGIN:VCARD VERSION:2.1 N:Punnoose;Roshan FN:Punnoose, Roshan ADR;WORK:;2115 LABEL;WORK:2115 EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20050413T183207Z END:VCARD
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
