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]