[XML-SIG] Pyxie

Sean McGrath sean@digitome.com
Fri, 30 Jun 2000 21:09:23 +0100

[Ken MacLeod]
>Sean, is "create a PYX stream" correct?
>I read between the lines there and assumed Pyxie used pyexpat to parse
>the XML and "create PYX [events]", so no subprocess was used.  In
>which case the double parse isn't happening.
There are two ways to get PYX commonly used in Pyxie apps.

1) Use a subprocess and connect to it with a pipe:-
	fo = os.popen ("xmln foo.xml")

This is highly disk efficient as it can chew multi-gigabyte
XML files without any temporary files. 

2) Use pyxepat directly and write a temporary file

This saves a fork() but costs more in terms of disk

I have had occasion to use both.



XML Processing With Python
ISBN: 0 13 021119 2
Prentice Hall