Hi All, Has anybody had an issue with compatiblity between XML files between python 2.3 and python 2.4.
I have PyXML 0.8.3 installed in ClearCase and it is shared between Solaris and Windows. Here is an example on my system: ActivePython 2.3.4 Build 233 (ActiveState Corp.) based on Python 2.3.4 (#53, Oct 18 2004, 20:35:07) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.path.insert(0, r"C:\cc\sweeneym_atf\reuse_python") >>> import xml >>> xml.__file__ 'C:\\cc\\sweeneym_atf\\reuse_python\\xml\\__init__.py' >>> import xml.marshal.generic as m >>> f = open(r"C:\test.xml", "w+") >>> m.dump_format(sys.path, f) >>> f.close() ActivePython 2.4 Build 243 (ActiveState Corp.) based on Python 2.4 (#60, Nov 30 2004, 09:34:21) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.path.insert(0, r"C:\cc\sweeneym_atf\reuse_python") >>> import xml >>> import xml.marshal.generic as m >>> fd = open(r"C:\test.xml", "r") >>> l = m.load(fd) Traceback (most recent call last): File "<stdin>", line 1, in ? File "C:\cc\sweeneym_atf\reuse_python\xml\marshal\generic.py", line 377, in load return m._load(file) File "C:\cc\sweeneym_atf\reuse_python\xml\marshal\generic.py", line 396, in _load p.parseFile(file) File "C:\cc\sweeneym_atf\reuse_python\xml\sax\drivers\drv_pyexpat.py", line 74, in parseFile self.close() File "C:\cc\sweeneym_atf\reuse_python\xml\sax\drivers\drv_pyexpat.py", line 132, in close if self.parser.Parse("", 0) != 1: xml.parsers.expat.ExpatError: parsing finished: line 17, column 0 I then performed a test by doing the following: 1) From python 2.4, marshal sys.path into a test24.xml file. 2) From python 2.3 un-marshal the test24.xml file, it workes. 3) From python 2.3 re-marshal the just un-marshaled list into test23.xml 4) Back in python24, un-marshal test23.xml, it failed. 5) Perform a diff on the new files, identical. Any Ideas? -- http://mail.python.org/mailman/listinfo/python-list