Re: [IronPython] XmlDocument or XDocument in Python/Silverlight

2008-07-15 Thread Jimmy Schementi
nt, and Invoke will return a ScriptObject, and you can't cast a ScriptObject to a HtmlElement. ~js From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Jonathan Slenders [EMAIL PROTECTED] Sent: Monday, July 14, 2008 10:36 PM To: Discussion of IronP

Re: [IronPython] XmlDocument or XDocument in Python/Silverlight

2008-07-14 Thread Jonathan Slenders
Thank you, Jimmy. At the moment, I'm at a summercamp and stay there until the end of the month. Therefore, I've been inactive at this newsgroup. Jonathan 2008/7/15 Jimmy Schementi <[EMAIL PROTECTED]>: > Jonathan Slenders wrote: > > > > And another question, which is rather Silverlight then Iron

Re: [IronPython] XmlDocument or XDocument in Python/Silverlight

2008-07-14 Thread Jimmy Schementi
Jonathan Slenders wrote: > > And another question, which is rather Silverlight then IronPython > related. I hope it's okey to ask it here. > How should I create a TextNode from Silverlight with IronPython code? > In javascript, one would: > > node = document.createTextNode("text"); element.appendCh

Re: [IronPython] XmlDocument or XDocument in Python/Silverlight

2008-06-18 Thread Jonathan Slenders
2008/6/18 Jonathan Slenders <[EMAIL PROTECTED]>: > How does IronPython receive the results of GetDescendants() or Elements() > from the Linq library. > > PS C:\Documents and > Settings\Jonathan\Desktop\IronPython-2.0B3-Bin\IronPython-2.0B3> .\ipy.exe > IronPython 2.0 Beta (2.0.0.3000) on .NET 2.0.

Re: [IronPython] XmlDocument or XDocument in Python/Silverlight

2008-06-18 Thread Jonathan Slenders
How does IronPython receive the results of GetDescendants() or Elements() from the Linq library. PS C:\Documents and Settings\Jonathan\Desktop\IronPython-2.0B3-Bin\IronPython-2.0B3> .\ipy.exe IronPython 2.0 Beta (2.0.0.3000) on .NET 2.0.50727.1433 Copyright (c) Microsoft Corporation. All rights re

Re: [IronPython] XmlDocument or XDocument in Python/Silverlight

2008-06-17 Thread Jonathan Slenders
Thank you, Michael I had to: import clr clr.AddReference('System.Xml.Linq') 2008/6/17 Michael Foord <[EMAIL PROTECTED]>: > Hello Jonathan, > > Do you need to add a reference to the assembly before importing from it? > > In the Silverlight chapter of IronPython in Action I use 'XmlReader' for

Re: [IronPython] XmlDocument or XDocument in Python/Silverlight

2008-06-17 Thread Michael Foord
Hello Jonathan, Do you need to add a reference to the assembly before importing from it? In the Silverlight chapter of IronPython in Action I use 'XmlReader' for parsing XML. I have already (in an earlier chapter) provided a wrapper over this that gives it a SAX like interface. The code worked

[IronPython] XmlDocument or XDocument in Python/Silverlight

2008-06-17 Thread Jonathan Slenders
Hello, It seems that XmlDocument isn't available in Silverlight. The Linq dll ("System.Xml.Linq.dll") is listed between the client libraries, but when I add them to my Silverlight manifest file and try: from System.Xml.Linq import XDocument The following error occurs: "ManagedRuntimeError, SetPr