Hi Jens,

At 18.56 23/11/2006 +0100, Jens Storz wrote:
Hello,
I tried to create an xml-file like this:

<?xml version="1.0" encoding="UTF-8"?>
<a:b/>

using:
 createDocument("","a:b",0)

In this case, the colon causes a runtime-error.

I think it's throwing an exception (DOMException), and you are not catching it.
The reason is that, when you specify a namespace prefix, you must also specify a non-empty namespace URI.

Alberto


using:
 createDocument("","a-b",0)

works well. I hope someone can tell me how to use it correctly.

thx Jens





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


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

Reply via email to