In a script element of a STAX job, when I try to open an XML document using the
xml.dom.minidom
module<http://www.python.org/doc/2.1/lib/module-xml.dom.minidom.html>,
I get the following error:
> ===== Python Error Information =====
> com.ibm.staf.service.stax.STAXPythonEvaluationException:
> Traceback (innermost last): File "<pyExec string>", line 5, in ?
> File
> "C:\STAF\data\STAF\lang\java\shared_jython\2.1-staf-v3\Lib\xml\dom\minidom.py",
> line 908, in parse
> File
> "C:\STAF\data\STAF\lang\java\shared_jython\2.1-staf-v3\Lib\xml\dom\minidom.py",
> line 900, in _doparse
> File
> "C:\STAF\data\STAF\lang\java\shared_jython\2.1-staf-v3\Lib\xml\dom\pulldom.py",
> line 251, in getEvent
> AttributeError: feed
>
Here is the Python code of the XML file loading:
> from xml.dom import minidom
> doc = minidom.parse( R'C:\xmlfile.xml' )
>
The XML file is well-formatted, and I parsed normally using Python alone
(from Python 2.1 IDLE)
Any ideas?
--
Ahmed Mostafa
0123919750
[EMAIL PROTECTED]
Software Developer
IBM Egypt, Cairo Technology Development Center
-------------------------------------------------------------------------
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
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users