The String with the new data that I receive looks like this:

"<g id="101">
<polyline style="fill:none; stroke:rgb(255,000,000);" points="8325
2232, 8325 2540"/>
<polyline style="fill:none; stroke:rgb(255,000,000);" points="8445
2232, 8425 2530"/>
...
</g>"

So I parse it and I put it into a document.

I try:

1)
Element bRoot = (Element)b.getDocumentElement(); //get "g"
bRoot.setAttribute("xmlns","http://www.w3.org/2000/svg";);

=> doesn't work

2)
To add an "svg" element to the string.
"<svg xmlns="http://www.w3.org/2000/svg";>
<g id="101">
<polyline style="fill:none; stroke:rgb(255,000,000);" points="8325
2232, 8325 2540"/>
<polyline style="fill:none; stroke:rgb(255,000,000);" points="8445
2232, 8425 2530"/>
 ...
</g>
</svg>"

=> doesn't work

3)
To add an "svg" element without namespace
"<svg>
<g id="101">
<polyline style="fill:none; stroke:rgb(255,000,000);" points="8325
2232, 8325 2540"/>
<polyline style="fill:none; stroke:rgb(255,000,000);" points="8445
2232, 8425 2530"/>
...
</g>
</svg>"

and then

Element bRoot = (Element)b.getDocumentElement(); //get "svg"
bRoot.setAttribute("xmlns","http://www.w3.org/2000/svg";);

 => doesn't work

--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/message/[email protected]/6542175.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to