[IronPython] System.Windows.Serialization

Vamshi Raghu vamshi.raghu at gmail.com
Thu Apr 20 09:11:20 CEST 2006


Hello,

Just wanted to let you know that LoadXaml in avalon.py in 1.0 Beta 5 imports
System.Windows.Serialization, but this has been renamed from the Feb CTP of
WinFX onwards to System.Windows.Markup.

Had some trouble figuring it out! Still having trouble using LoadXaml
though. It seems there is some incompatibility in the XAML expected by the
deserializer.

>>> xaml1 = LoadXaml("calc.xaml")
Traceback (most recent call last):
  File , line 0, in input##14
  File G:\Program Files\IronPython-1.0-Beta5\Tutorial\avalon.py, line 69, in
Loa
dXaml
  File PresentationFramework, line unknown, in Load
  File PresentationFramework, line unknown, in XmlTreeBuildDefault
  File PresentationFramework, line unknown, in Parse
  File PresentationFramework, line unknown, in ParseFragment
  File PresentationFramework, line unknown, in GetParseMode
  File PresentationFramework, line unknown, in ReadXaml
  File PresentationFramework, line unknown, in ParseError
SystemError: 'Canvas' tag not valid in namespace '
http://schemas.microsoft.com/w
infx/avalon/2005'. Tag names are case sensitive. Line '2' Position '2'.

Also, it can't read files created from Expression Interactive Designer March
CTP. I get errors like:
>>> xaml1 = LoadXaml("D:\\Code\\C#\\Graph\\Scene1.xaml")
Traceback (most recent call last):
  File , line 0, in input##16
  File G:\Program Files\IronPython-1.0-Beta5\Tutorial\avalon.py, line 69, in
LoadXaml
  File PresentationFramework, line unknown, in Load
  File PresentationFramework, line unknown, in XmlTreeBuildDefault
  File PresentationFramework, line unknown, in Parse
  File PresentationFramework, line unknown, in ParseFragment
  File PresentationFramework, line unknown, in GetParseMode
  File PresentationFramework, line unknown, in ReadXaml
  File PresentationFramework, line unknown, in ParseError
SystemError: 'Class' attribute in '
http://schemas.microsoft.com/winfx/2006/xaml'
 namespace not valid. Try compiling the XAML. Line '9' Position '2'.

Any hints?

Version:
IronPython 1.0.2296 (Beta) on .NET 2.0.50727.42
Windows SDK 5308.0
WinFX SDK 50215.45

Thanks!
-Vamshi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060420/0c2f1054/attachment.html>


More information about the Ironpython-users mailing list