[IronPython] XmlDocument or XDocument in Python/Silverlight
Michael Foord
fuzzyman at voidspace.org.uk
Tue Jun 17 23:45:17 CEST 2008
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 unmodified
on Silverlight!
Michael Foord
Jonathan Slenders wrote:
> 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, SetProperty failed"
>
> What's the recommended way to query XML documents? A good XML library
> is essential at the client for doing AJAX (in our case: APAX), I
> wonder in the first place why XmlDocument isn't in Silverlight by default.
> I don't want to use a SAX parser like XmlReader.
>
> Jonathan
>
>
> PS: When the XML parsing works, I can present a working APAX example
> for querying a mysql database. It returns row after row every time the
> client does a request for the next row. The javascript version works,
> and I'm porting it now to Silverlight/IronPython.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
--
http://www.ironpythoninaction.com/
http://www.theotherdelia.co.uk/
http://www.voidspace.org.uk/
http://www.ironpython.info/
http://www.resolverhacks.net/
More information about the Ironpython-users
mailing list