Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Develop Python/XML with 4Suite, Part 1: Process XML with PyXml

Explore the PyXml implementation of DOM Level 2

Uche Ogbuji (uche.ogbuji@fourthought.com), Principal consultant, Fourthought Inc.
Uche Ogbuji is a computer engineer, co-founder, and principal consultant at Fourthought Inc. He has worked with XML for several years, codeveloping 4Suite, a library of open-source tools for XML development in Python, and 4Suite Server, an open-source, cross-platform XML data server providing standards-based XML solutions. He writes articles on XML for IBM developerWorks, LinuxWorld, SunWorld and XML.com. Mr. Ogbuji is a Nigerian immigrant living in Boulder, CO.
Chimezie Ogbuji (chimezie.ogbuji@fourthought.com), Software consultant, Fourthought Inc.
Chimezie Thomas-Ogbuji is a software consultant for Fourthought Inc. He codevelops 4Suite and 4Suite Server. He enjoys writing and developing computer games in his spare time. He also researches artificial intelligence techniques.

Summary:  The first in a series, this tutorial covers PyXml, an implementation of the W3C's DOM Level 2 specification contained in Fourthought's 4Suite. 4Suite is an open source, comprehensive library and toolkit for XML processing in Python, and it implements various open standards related to XML. This series of tutorials introduces 4Suite and gives practical examples of XML development using 4Suite.

View more content in this series

Date:  17 Oct 2001
Level:  Introductory PDF:  A4 and Letter (120 KB | 30 pages)Get Adobe® Reader®

Activity:  8650 views
Comments:  

Introduction

Who should read this tutorial?

Many XML related technologies are no more than specifications for a standard way for information to be processed and interpreted. This is no different with the Document Object Model (DOM), which provides a standard way for users to access and manipulate an XML document. There are various DOM implementations, in various computer languages. Here, we will be introducing Fourthought's PyXml. This particular implementation is written in Python.

This tutorial is written for users who are familiar with XML/DOM and Python, with more emphasis on the latter. Since DOM is no more than an Application Programming Interface (API), knowledge of Python is more important than knowledge of XML to follow this tutorial. Minimal knowledge of XML (specifically DOM) is also necessary, since the focus is on a DOM tool, not the DOM specification itself. You should keep referential material within reach, and you will find it very useful to have a copy of the DOM specification open. Appropriate links and sources are listed in the Resources section at the end of the tutorial.


Required software

The following packages are required to follow this tutorial:

  • Python 2.1: Python is the object oriented language that PyXml is written in.
  • PyXml: PyXml is one of the many DOM implementations. This one is written in Python and is packaged as a Python library.

In addition, you should read the DOM Level 2 Specification, which underlies this tutorial to a large extent.


Getting help and finding out more

For technical questions about the content of this tutorial, contact the authors, Uche Ogbuji (uche.ogbuji@fourthought.com) and Chimezie Ogbuji (chimezie.ogbuji@fourthought.com).

1 of 13 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=XML
ArticleID=138095
TutorialTitle=Develop Python/XML with 4Suite, Part 1: Process XML with PyXml
publish-date=10172001
author1-email=uche.ogbuji@fourthought.com
author1-email-cc=dwxed@us.ibm.com
author2-email=chimezie.ogbuji@fourthought.com
author2-email-cc=dwxed@us.ibm.com

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.