I'm trying to force a blank line in a flowPara element with the following:

           fpara = document.createElementNS(svgNS, "flowPara");
           // other lines with content are added here
           Element fline = document.createElementNS(svgNS, "flowLine");
           fline.setAttributeNS(null,"xml:space","preserve");
           fline.appendChild(document.createTextNode("&#0x200B;"));
           fpara.appendChild(fline);
           // more content added here

However instead of getting a blank line I get all of the characters ie
"&#0x200B;".

Am I doing it wrong?

Is it because there isn't anything within my svg document associated with
the "xml:" prefix?  If so how do I fix that?

Thanks,

    Phil

--
Visit http://www.darkisle.com for photos of castles, cairns and other
historic sites in the British Isles.

Reply via email to