Originally posted by Philippe Desrosiers:
I guess I'll just explicitly set the "default" namespace for all the child elements as well...
Yes, if you want them to be in the default namespace as well then you do have to declare them to be in the default namespace. If you don't do that, then they are... um... by... um... by default... in no namespace, so your output declares them thus. That's why you get the output you get.
You would get the same effect if you used a namespace with a prefix, by the way. So "default namespace" isn't a completely stupid name. Although I have to say, the default namespace is not my favourite XML feature either.