[Tutor] More and more OT - Python/Java
Max Noel
maxnoel_fr at yahoo.fr
Wed Jan 12 03:04:57 CET 2005
On Jan 12, 2005, at 01:40, Liam Clarke wrote:
> So, you've got the XML like -
>
>
> <descript> You are standing in front of a stump. A path leads north.
> </descript>
> <exits> N </exits>
>
> and you have a XSL that works like a CSS?
>
> descript {font:arial, align:center}
> exits style:bolder
>
> Is that a good paraphrasing? How browser dependent would that be? Do
> most browsers support XML & XSL?
Yup, that'd be the idea. IIRC most browsers support XML and XSL. (not
sure, I'll have to check)
> PS
>
> What's SAX DOM? I know what a DOM is, but what's the SAX? I saw it in
> my Python docs when I was poking XMLParser. If/when I work with XML,
> would you recommend Python's standard modules for it?
SAX is just another way of parsing XML. It's very sequential in
nature, so it's not good if you need to re-access a previous node from
the document, but since it doesn't load the entire document in memory
(doesn't build a tree out of it), it uses less memory than DOM, and
scales much better (obviously).
I haven't tried Python's XML parsers yet, but I understand Python
supports both SAX and DOM, so it should be okay...
-- Max
maxnoel_fr at yahoo dot fr -- ICQ #85274019
"Look at you hacker... A pathetic creature of meat and bone, panting
and sweating as you run through my corridors... How can you challenge a
perfect, immortal machine?"
More information about the Tutor
mailing list