Hi,

 

I try to create the following text data with the package org.w3c.dom. But I couldn't succeed.

I couldn't add the "?" to the content.

 

 

<text x="55" y="26" style="font-size:16pt;font-family:'Arial';stroke:black">
     ?
</text>

 

I tried;

Element text=document.createElementNS(null,"text");

text.setAttributeNS(null,"x","55");
text.setAttributeNS(null,"y","26");
text.setAttributeNS(null,"style","font-size:16pt;font-family:'Arial';stroke:black");

??

 

I also tried;

Text text = document.createTextNode("text");
text.setNodeValue("?");

But this way I can't set the attribute data...

 

(I have to use org.3.dom.* . I can't use any onther package like jdom... )

Can anyone please help me?

 

Thank you

Baris

Reply via email to