Thanks again!
Oh so slowly comprehension is sinking in.
Phil
On 11/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi Phil,
"Phil Wright" <[EMAIL PROTECTED]> wrote on 11/27/2006 03:21:41 PM:
> I'm trying to force a blank line in a flowPara element with the
following:
> fline.appendChild(document.createTextNode("�x200B;"));
This should probably be something like:
fline.appendChild(document.createTextNode("" + ((char)0x200B)));
> However instead of getting a blank line I get all of the characters ie
"�x200B;".
I'm not really sure what char 0x200B is but assuming it's some sort
of zero width space, the above will generate a String with that character
in
it. The basic problem is that XML entities/literals are handled by the
XML parser, they don't exist and shouldn't be interpreted in the DOM
strings.
> Is it because there isn't anything within my svg document associated
with the
> "xml:" prefix? If so how do I fix that?
fline.setAttributeNS(null,"xml:space","preserve");
This line also needs to be:
fline.setAttributeNS("http://www.w3.org/XML/1998/namespace",
"xml:space", "preserve");
Once again in DOM you must provide the namespace it
does not to prefix mapping, that is the parsers responsability.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Visit http://www.darkisle.com for photos of castles, cairns and other
historic sites in the British Isles.