cyberco wrote:
> OK, that's what I was already doing. Thanks.
> Will the standard serializer in 1.3 support default namespaces?
that's the plan. I've been working on a more modular XML writer, which
will make it easier to tweak the output in various ways, without having
to write everything fro
> written by a "it's the bytes, not the data" guy, obviously ;-)
hehehe...I figured it was. Wonder 'who' it was... ;)
> the standard serializer in 1.2 doesn't support default namespaces, so
> the quickest way to do this is to loop over all tags (use getiterator),
> strip off the "{http://xspf.org
cyberco wrote:
> Unfortunately the client that needs to consume this XML can't handle
> the 'ns0:' part of each tag.
> Is there a way to output XML similar to the input?
written by a "it's the bytes, not the data" guy, obviously ;-)
the standard serializer in 1.2 doesn't support default namesp
The (excellent) ElementLibrary ads namespaces to each element when
writing the tree back to a file.
Say I do:
tree = ET.parse('playlist.xml')
tree.write(outFile)
with the following XML:
=
http://xspf.org/ns/0/";>
Kick off!
=
Writ