[IronPython] Loading XAML files

Gutfreund, Yechezkal ygutfreund at draper.com
Fri Jan 12 14:21:54 CET 2007


All of that XAML code is generated by BLEND. Both Blend and VS-Studio
understand that x:Class is a member of the namespace. But I am also not
a WPF .NET guru. What I suspect is that when I use ipy, I am not using
the same libraries that do XML and XAML loading as when I use Blend and
VS-Studio.
 
Ideas?

________________________________

From: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] On Behalf Of J. Merrill
Sent: Thursday, January 11, 2007 10:10 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Loading XAML files


At 05:05 PM 1/11/2007, Gutfreund, Yechezkal wrote (in part)



	I am using Blend to create XAML files and testing out the design
there. Then but all my code is done via Python using the Tutorials
"avalon.py" module.
	 
	It works fine. Except for one annoying glitch.
	 
	But for some reason the LoadXAML() call chokes on this:
	 
	 
	

		>>> w.Content = LoadXaml("WebWrapper.xaml")
		
		'Class' attribute does not exist in XML namespace '
http://schemas.microsoft.com/winfx/2006/xaml
<http://schemas.microsoft.com/winfx/2006/xaml> ' namespace. Line '6'
Position '2'.


I know almost nothing about XAML, but that error seems to be coming not
from anything related to IronPython but rather from some .Net XML
parser.  Have you attempted to confirm the validity of the file by
loading using any other development tool?

An XML validation tool should be able to determine the accuracy of the
statement that there's no "Class" attribute in that namespace.

(Is it possible that the attribute name is "class" not "Class" ?) 

J. Merrill / Analytical Software Corp 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20070112/af22270d/attachment.html>


More information about the Ironpython-users mailing list