On Nov 02, 2006, at 17:57, [EMAIL PROTECTED] wrote:
I don't have a namespace for the xml generated in my app. I've had a look at the namespace options and there doesn't seem to be a way to set the default NS for nodes I create, which could make the code very ugly to look at, it being littered with an NS text. Having said that, I could make it a constant.
No, there isn't such an option, which is a shame as it would have made the DOM much easier to use. But that's all history now.
You can of course use a constant, and you can also create a createHTMLElement() method that'll handle the namespace for you.
The reason for the does it matter was that in my case, I find all the elements for a NS do a get first child and then a get next sibling and then add a node. I have no idea if the get child and sibling are NS aware
No, only the methods that handle element and attribute names one way or another need to be NS aware.
-- Robin Berjon - http://berjon.com/ ----------------------------------------------------------------------- "Perl is like masturbation, everyone does it but it's considered bad taste to admit to it in public." -- Kip Hampton --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]