can you tell me how to use stdin?

"????????" <[email protected]>
Newsgroups gmane.comp.python.xml
Message-ID <[email protected]>
In the PyXml module,there is an example like this:

     from xml.dom.ext.reader.Sax2 import FromXmlStream
     doc = FromXmlStream(sys.stdin)
>From the example the argument of FromXmlStream is sys.stdin,
but now i have a xml file namede "test.xml",how can i redirect the
stdin to the file?

For a long time,i have been confused about stdin , can you give me
an example ? Thanks a bounch.



_______________________________________________
XML-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/xml-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.