Alberto Massari schrieb:
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
You're right, giving a namespace URI causes no errors. But the problem is still
not solved:
I need something like this as root-node:
<a:b xmlns:a="..." xmlns:c="..." ...>
createDocument("uri","a:b",0) creates:
<a:b xmlns="uri">
it is simple to add xmlns:x="...", but I don't no how to omit xmlns="uri"
Jens
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]