Linux Today: Linux News On Internet Time.
Search Linux Today
search.internet.com
Linux News Sections:  Blog -  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Preferences
Contribute
Link to Us
Search
Linux Jobs

Become a Marketplace Partner

internet.commerce
Be a Commerce Partner














The Linux Channel at internet.com
Linux Today
Enterprise Linux Today
Apache Today
JustLinux.com
Linux Planet
PHPBuilder
All Linux Devices
Technology Jobs

JustTechJobs.com

LinuxToday Newsletters
Subscribe News
Subscribe PR
Subscribe Security

internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

 






Current Newswire:

Opening 2009 with the Openmoko Neo Freerunner

Vi and Vim: 5 Awesome Examples For Automatic Word Completion Using Ctrl-X Magic

Installing FlyCast on Ubuntu Linux

Managing Invoices with miniInvoices

WFTL Bytes! for Jan 8, 2009: Die Linux Counter, Bobbies Lift Your Skirts, Fedora Baby Needs Name

Linux tip: How to take a screenshot without X (GUI), just from console

SECURITY: Widespread vulnerabilities found in programs which use OpenSSL

Datamation 2009 Product of the Year Awards: Nominate Your Favorite

20 "Really Cool" Netbook-optimized Linux Wallpapers

Open source Mono framework brings C# to iPhone and Wii




Unix/Red Hat Systems Adminsitrator
The Computer Merchant, Ltd
US-PA-Lansdale

Justtechjobs.com Post A Job | Post A Resume
:IBM developerWorks: Charming Python: Tinkering with XML and Python
IBM developerWorks: Charming Python: Tinkering with XML and Python
Jun 25, 2000, 14 :51 UTC (1 Talkback[s]) (5303 reads)

(Other stories by David Mertz)

"A major element of getting started on working with XML in Python is sorting out the comparative capabilities of all the available modules. In this first installment of his new Python column, "Charming Python," David Mertz briefly describes the most popular and useful XML-related Python modules, and points you to resources for downloading individual modules and reading more about them. This article will help you determine which modules are most appropriate for your specific task."

"Python is in many ways an ideal language for working with XML documents. Like Perl, REBOL, REXX, and TCL, it is a flexible scripting language with powerful text manipulation capabilities. Moreover, more than most types of text files (or streams), XML documents typically encode rich and complex data structures. The familiar "read some lines and compare them to some regular expressions" style of text processing is generally not well suited to adequately parsing and processing XML. Python, fortunately (and more so than most other languages), has both straightforward ways of dealing with complex data structures (usually with classes and attributes), and a range of XML-related modules to aid in parsing, processing, and generating XML."

"One general concept to keep in mind about XML is that XML documents can be processed in either a validating or non-validating fashion. In the former type of processing, it is necessary to read a "Document Type Definition" (DTD) prior to reading an XML document it applies to. The processing in this case will evaluate not just the simple syntactic rules for XML documents in general, but also the specific grammatical constraints of the DTD. In many cases, non-validating processing is adequate (and generally both faster to run, and easier to program) -- we trust the document creator to follow the rules of the document domain. Most modules discussed below are non-validating; descriptions will indicate where validation options exist."

Complete Story

Related Stories:
O'Reilly Network: ActiveState IDEs for Perl and Python to Use Mozilla and Visual Studio Frameworks(May 25, 2000)
IBM developerWorks: Tutorial: XML and scripting languages(Mar 04, 2000)
Byte.com: A Perl Hacker in the Land of Python(Feb 07, 2000)
LinuxPlanet: Python Squeezes the Web(Oct 25, 1999)
Byte.com: XML-RPC Programming with Zope(Oct 25, 1999)
Ext2: Introduction to Scripting(Oct 21, 1999)


Index Mode   |   Flat Mode   |   Thread Mode   |   Thread Flat  
  Talkback(s) Name  and Date
The current wealth of XML tools for Pyth ...   Fine Overview of XML Toolkit   
Noah F. San Tsorbutz
Jun 26, 2000, 02:45:39
 
  Home | Search Talkbacks | Customize View    Top of Page  



Enter your comments below:

* Your Name:

* Your Email Address:

* Subject:

CC: [will also send this talkback to an E-Mail address]

* Comments:

Tags allowed:<I>,<B> and <U>. See our talkback-policy for more about talkback content.

Fields marked with * are required!






..............................




All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux, Apache and PHP

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers