Re: [PHP-DEV] annoying DOM limitation

2005-05-13 Thread George Schlossnagle
On May 13, 2005, at 5:29 PM, Jared Williams wrote: While hacking on a PHPDoc -> WSDL generator, I ran into an annoying limitation in the dom extension: you can't add a namespace to a dom document unless you have an element in that namespace. Why might you want to do this? Well, a common thing is

RE: [PHP-DEV] annoying DOM limitation

2005-05-13 Thread Jared Williams
> > While hacking on a PHPDoc -> WSDL generator, I ran into an > annoying limitation in the dom extension: you can't add a > namespace to a dom document unless you have an element in > that namespace. Why might you want to do this? Well, a > common thing is to have your xml-schema types to b

Re: [PHP-DEV] annoying DOM limitation

2005-05-13 Thread Rob Richards
I had just posted a comment on your blog about this. $root->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:xsd','http://www.w3.org/2001/XMLSchema'); should do exactly what you want. Rob George Schlossnagle wrote: While hacking on a PHPDoc -> WSDL generator, I ran into an annoying limita