Developing a Basic Net Xml Application

A .NET XML application will follow most of the same principles you use when working with a static language such as C or Visual Basic.NET. In fact, you might not notice much difference at all except for the obvious structural requirements of a Python application. Consequently, you should find it easy to move your XML code over to IronPython because you really don't have anything new to worry about. Listing 13-1 shows a simple XML application that creates an XML document, saves it to disk, reads...

Using The Ironpython Console

The IronPython console is the best place to begin working with IronPython. You can enter a few statements, test them out, and then work out additional details without too many consequences. In addition, because the console is interactive, you obtain immediate feedback, so you don't have to wait for a compile cycle to discover that something you're doing is completely wrong. In fact, even after you've mastered IronPython, you'll find that you use the console to try things out. Because IronPython...

Working with String objects

Strings are one of the first objects many people use. You write that first Hello World application and marvel when the words appear on screen. In fact, strings are the mainstay of many applications. Without strings you can't provide prompts to the user or ask for input. Sure, you may not do any heavy lifting with strings, but every application out there requires strings to work properly. The following sections discuss the IronPython string object in more detail. One of the problems you can...

Developing the Iron Python Callable Methods

The P Invoke code shown in Listing 16-5 does expose the Win32 API calls needed to perform certain tasks with IronPython. Theoretically, you could rely on just the code in Listing 16-5 to gain the access you require in IronPython. However, the task would be difficult because you'd need to work through the required bit manipulations. It's better to place the code you need to access the Win32 API in easily called methods, which is the purpose of the code in the following sections. Defining Common...

An overview of the Mono Family

You can obtain Mono for a considerable number of platforms. In fact, the makers of Mono add new platforms with every release. At one time, Mono worked on just a few Linux implementations, Windows, and the Mac OS X. Over time, Mono support has increased to the exciting list of platforms that follows. LiveCD This is actually an openSUSE 11.2.1 http www.opensuse.org en LiveCD a CD or DVD that contains a bootable image see http en.wikipedia.org wiki Live_CD for details that includes Mono 2.6.1. Mac...

Working with xmldomminidom

The xml.dom.minidom module is designed to help you work with XML using the DOM approach. However, this module is far from complete in IronPython, partly due to the CPython support required in standard Python. The actual document support is complete, so you won't have a problem building, editing, and managing XML documents. It's the write and read support that are lacking. Fortunately, you can overcome write issues by using a different approach to outputting the document to disk or other media ....

Debugging With The Clr Debugger

The CLR debugger, CLRDbg.EXE, is part of the .NET Framework SDK. You find it in the GuiDebug folder of your .NET Framework installation or in the Program Files Microsoft.NET SDK v2.0 GuiDebug folder. However, if you installed Visual Studio without installing the SDK, you might not see a GuiDebug folder. In this case, you can download and install the .NET Framework SDK separately. You can obtain the .NET Framework SDK for various platforms at these locations. .NET Framework 2.0 .NET Framework...