By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,187 Members | 1,629 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,187 IT Pros & Developers. It's quick & easy.

removing ignorable whitespace from minidom.DOM

P: n/a
apologies for asking this. it must have been answered before. i have
really tried to find the answer elsewhere.

a simple question: i'd like to remove all ignorable whitespace from
my minidom representation. it make the DOM much cleaner (for me).

i've resorted to parsing first with Sax2 and using StripXml to deal
with the whitespace. why not stick with the Sax2 DOM you ask? legacy
code all uses the minidom, and they're not *quite* compatible.

unfortunately, the Sax2 parser moves all of my (very intentional)
namespace declarations to the document level, which causes me yet
another headache). if anyone here happens to know how to *stop* the
Sax2 reader from mucking up my namespaces, that would be nice to know
too. of course, i'm sure the mucking is done for another Very
Important Reason. it's still mucking to me.

in a better world, i'd vow my lifelong service to anyone who can help
with these questions. in ours, i'll say: thanks in advance ; )

haughki
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.