Hi Fredrik.
Fredrik Lundh wrote:
It wouldn't need to conform to the official specifications of the DOM API, but I guess I'm after
some comparable functionality. [--snip--]
sounds like this might be exactly what you need:
http://effbot.org/zone/element-index.htm
(it's also the fastest and most
You've reversed some function parameters. Here's a program that works
fine (note that you don't need to set up a SAX parser):
from xml.dom import minidom
text = '''
alias
Thu Jan 30 15:06:06 NZDT 2003
Nothing
'''
# Parse the string into a minidom
mydom = minidom.parseString(t
Mike McGavin wrote:
>> is the DOM API an absolute requirement?
>
> It wouldn't need to conform to the official specifications of the DOM API,
> but I guess I'm after
> some comparable functionality.
>
> In particular, I need to be able to parse a namespace-using XML document into
> some kind of
Hi Fredrik.
Fredrik Lundh wrote:
I'm not terribly experienced with XML in general, so it's possible that I'm just incorrectly
interpreting how things are supposed to work to begin with. If this is the case, please accept my
apologies, but I'd like any suggestions for how I should be doing it. I
Mike McGavin wrote:
> I'm not terribly experienced with XML in general, so it's possible that I'm
> just incorrectly
> interpreting how things are supposed to work to begin with. If this is the
> case, please accept my
> apologies, but I'd like any suggestions for how I should be doing it. I
Hi everyone.
I've been trying for several hours now to get minidom to parse
namespaces properly from my stream of XML, so that I can use DOM methods
such as getElementsByTagNameNS(). For some reason, though, it just
doesn't seem to want to split the prefixes from the rest of the tags
when pars