Note that STAX uses Jython 2.1 to execute Python code, not Python. Jython
2.1 is based on Python 2.1. I think that the ElementTree libraries were
not shipped until Python 2.5 and later (and thus aren't provided with
Jython 2.1). See section "Appendix F: Jython and CPython Differences" in
the STAX User's Guide for more information on the differences between
Jython and Python. Jython is an implementation of the Python scripting
language written in 100% pure Java that runs under any compliant Java
Virtual Machine (JVM). Using Jython, you can write Python code that
interacts with any Java code.
See section "2.6.7 How can I parse an XML file from a STAX job?" in the
STAF/STAX FAQ at http://staf.sourceforge.net/current/STAFFAQ.htm#d0e961
for an example of how to parse an XML file using an XML Parser provided
with Java.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, [EMAIL PROTECTED]
(512) 838-8347 or Tieline 678-8347
"Glenn MacGregor" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
02/29/2008 01:17 PM
To
<[email protected]>
cc
Subject
[staf-users] Parsing XML in STAX
Hi All,
I am trying to parse an XML file in a STAX job. I have tried to import
elementtree but that produces an ImportError. Is there a built-in XML
parser or a different one I can import?
Thanks
Glenn
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users