stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors


XML Namespaces Support in Python Tools, Part 1







XML Namespaces Support in Python Tools,
Part 1

XML Namespaces Support in Python Tools,
Part 1
04/09/2004 04:09 PM

Uche Ogbuji provides a hands-on introduction to Python's facilities for processing XML namespaces.




This is a GrokNews Entry: (what is grok?)





Similar Items

XML Namespaces Support in Python Tools, Part 1

Grok Headline matches for XML Namespaces Support in Python Tools, Part 1

Python and XML: XML Namespaces Support
in Python Tools, Part Two


Python and XML: XML Namespaces Support
in Python Tools, Part Two
05/13/2004 07:55 PM
In his latest Python and XML column, Uche Ogbuji continues his tour of XML namespaces support in Python tools, focusing this time on 4Suite.

Python and XML: XML Namespaces Support
in Python Tools, Part Three


Python and XML: XML Namespaces Support
in Python Tools, Part Three
06/30/2004 07:31 PM
In this month's Python and XML column Uche Ogbuji examines the namespace support in ElementTree, PyRXPU, and libxml.

Rapid application development tools,
part 3: More RAD tools


Rapid application development tools,
part 3: More RAD tools
02/13/2004 09:19 AM
In parts 1 and 2 of this series I discussed database front end development tools and RAD environments for the BASIC language on Linux. I'll conclude by looking at tools for smaller programming languages (I won't talk about C++/KDevelop/Anjuta or Java/Eclipse) and little-known or independently developed languages.

AVPython: Python Support for ArcView GIS


AVPython: Python Support for ArcView GIS 06/29/2004 06:55 PM
AVPython 1.2.6 released

Python to drop functional programming
support


Python to drop functional programming
support
06/24/2005 05:11 PM
I was sad to read the news item on slashdot about Python's future, a language that I find satisfying many needs. Very well, Guido rants about dropping reduce() and friends in python. Reading his reasoning, all I can say is that he might be getting behind the times.

PyGIMP: Support for writing GIMP plugins
in Python


PyGIMP: Support for writing GIMP plugins
in Python
04/09/2004 03:54 PM
Being able to use Python to write GIMP plugins is nice. Here is how I built pygimp 1.2 for GIMP 1.2.5 from Fink 0.6.2 installed to /sw on Mac OS X 10.3.3. First are what I did for GTK+ (1.2) followed by the differences for GT...

Tools Part of the SOA Challenge


Tools Part of the SOA Challenge 02/05/2005 09:53 PM

Windows 2000 Support Tools


Windows 2000 Support Tools 07/28/2004 11:14 AM

Inspector 1.2 adds Pro Tools support,
more


Inspector 1.2 adds Pro Tools support,
more
12/16/2003 01:43 PM
Elemental Audio Systems has released Inspector 1.2, an update to its audio analysis plug-in...

Websphere MQSeries Support Tools


Websphere MQSeries Support Tools 03/15/2003 04:03 PM
Functional Design and Technical Design

Rapid application development tools,
part 1: Database front ends


Rapid application development tools,
part 1: Database front ends
02/10/2004 07:41 AM
Rapid application development environments let you produce code templates by visually designing a graphical user interface. You then simply add code for what should happen when an event (e.g. a click) occurs. Borland's Kylix is a well-known RAD application, but rumour has it Kylix's days are numbered. Time to look for alternatives.

Rapid application development tools,
part 2: Visual Linux BASICs


Rapid application development tools,
part 2: Visual Linux BASICs
02/11/2004 08:22 AM
In my last article I talked about the first of two approaches to rapid application development environments, programmable/scriptable database front ends. In this sequel  I'll look at visual development environments that utilize a BASIC dialect as programming language to build Linux GUI applications.

SMS 2003 Site Recovery tools also
support SMS 2.0


SMS 2003 Site Recovery tools also
support SMS 2.0
01/04/2004 09:31 PM

Windows XP Service Pack 2 Support Tools


Windows XP Service Pack 2 Support Tools 08/16/2004 11:38 PM
The Windows Support Tools for Microsoft Windows XP are intended for use by Microsoft support personnel and experienced users to assist in diagnosing and resolving computer problems. For individual tool descriptions, see the Windows Support Tools documentation (Suptools.chm). The Windows Support Tools for Windows XP can be installed only on a computer that is running the Windows XP operating system. The Windows Support Tools for Windows XP cannot be used to upgrade Microsoft Windows NT or Microsoft Windows 2000 Support Tools installed on Windows NT or Windows 2000. It is highly recommended that you remove all previous versions of Support Tools, including beta versions of the Windows Support Tools for Microsoft Windows XP, before you run the Support Tools installation program. Important: These tools have not been localized; they are written and tested only in the English language. Using these tools with a different language version of Microsoft Windows XP may not work. The following Support Tools have been updated in Service Pack 2:

Windows XP SP2 Support Tools for
Advanced Users


Windows XP SP2 Support Tools for
Advanced Users
08/09/2004 08:31 PM

Signal Ranger DSP Linux Support Tools


Signal Ranger DSP Linux Support Tools 11/16/2003 12:43 PM
Signal Ranger-STD Linux documentation

IBM Releases Support Tools for
Cloudscape Developers


IBM Releases Support Tools for
Cloudscape Developers
08/31/2004 04:43 AM
Techzonez Aug 31 2004 8:39AM GMT

BBEdit: Its Unix Support Doesn't Suck
Either, Part 1


BBEdit: Its Unix Support Doesn't Suck
Either, Part 1
04/27/2004 08:20 PM
This article intorduces you to BBEdit's Unix support features. If your background is Macintosh development, you will learn how to take advantage of these features and incorporate them into your development process. If you are a Unix developer coming to Mac OS X, you will learn how to carry over your development techniques using Mac OS X tools. By Kevin O'Malley, O'Reilly Network (via MyAppleMenu)

Apple Dropping Support For Virex As Part
Of .Mac


Apple Dropping Support For Virex As Part
Of .Mac
06/22/2005 02:01 AM

It appears that Apple will not provide support for the newly released Virex 7.6, after years of offering the virus protection software as a benefit of .Mac membership. By MacFixIt


BBEdit: Its Unix Support Doesn't Suck
Either, Part 2


BBEdit: Its Unix Support Doesn't Suck
Either, Part 2
05/01/2004 10:32 AM
In part one of this series, Kevin O'Malley introduced you to BBEdit's Unix support features. Now, in part two, he drills down into filters, scripts, Emacs key bindings, and more.

Windows Server 2003 Service Pack 1
32-bit Support Tools


Windows Server 2003 Service Pack 1
32-bit Support Tools
03/31/2005 03:04 AM
The Windows Support Tools for Microsoft Windows Server 2003 are intended for use by Microsoft support personnel and experienced users to assist in diagnosing and resolving computer problems. For individual tool descriptions, see the Windows Support Tools documentation (Suptools.chm).

Take control of your web site. Web
Managements gives you the tools and
support to fire your web master.


Take control of your web site. Web
Managements gives you the tools and
support to fire your web master.
09/11/2004 03:36 AM
Web Management systems innovative use of RSS feeds, to publish and share your web content, can help increase page views, and lower operating costs. [PRWEB Sep 11, 2004]

The Windows Installer Software
Development Kit Command Line Merge and
Install Tools - Part two Msitran.exe


The Windows Installer Software
Development Kit Command Line Merge and
Install Tools - Part two Msitran.exe
09/12/2004 10:55 AM

Linux in a Windows Workstation
Environment, Part III: Local Network
Support


Linux in a Windows Workstation
Environment, Part III: Local Network
Support
04/06/2005 06:43 AM
The final article in this series described the implementation of a VPN server to enable encrypted Wi-Fi transmissions.

Linux in a Windows Workstation
Environment, Part II: Local Network
Support


Linux in a Windows Workstation
Environment, Part II: Local Network
Support
03/17/2005 03:04 AM
Setting up local network support for file shares, print serving and intranet services.

Itanium-based versions of Windows Server
2003 Service Pack 1 Support Tools


Itanium-based versions of Windows Server
2003 Service Pack 1 Support Tools
03/31/2005 03:04 AM
The Windows Support Tools for Microsoft Windows Server 2003 are intended for use by Microsoft support personnel and experienced users to assist in diagnosing and resolving computer problems. For individual tool descriptions, see the Windows Support Tools documentation (Suptools.chm).

WMI Namespaces


WMI Namespaces 08/19/2004 12:42 PM

Namespaces - DNS and other


Namespaces - DNS and other 03/13/2003 10:23 AM
I think namespaces question is important to rise here. This article is a try to summarize knowledge about namespaces. You should consider as a start to discussion. The main question is - "Is it possible to create distributed namespace system without root of authority to be functional replace of DNS?"

XML 1.1 and Namespaces in XML 1.1 Are
W3C Recommendations


XML 1.1 and Namespaces in XML 1.1 Are
W3C Recommendations
02/10/2004 03:00 AM
2004-02-04: The World Wide Web Consortium today released Extensible Markup Language (XML) 1.1 and Namespaces in XML 1.1 as W3C Recommendations. XML 1.1 addresses Unicode, control character, and line ending issues. Namespaces 1.1 incorporates errata corrections and provides a mechanism to undeclare prefixes. Visit the XML home page. (News archive)

XML Q&A: Trickledown Namespaces?


XML Q&A: Trickledown Namespaces? 06/30/2004 07:31 PM
In this month's Q&A column John Simpson explains how namespaces are inherited, or not, by children elements and attributes.

XML Namespaces Explained


XML Namespaces Explained 11/26/2002 11:28 PM
WebmasterBase Nov 26 2002 10:44PM ET

Namespaces 1.1 in Last Call


Namespaces 1.1 in Last Call 09/05/2002 11:28 AM
The W3C has released a new Last Call Working Draft of Namespaces in XML 1.1.

Namespaces 1.1 Last Call Published


Namespaces 1.1 Last Call Published 09/05/2002 07:21 AM
5 September 2002: The XML Core Working Group has released a Last Call Working Draft of Namespaces in XML 1.1. Identified by IRI references, namespaces qualify element and attribute names in XML documents. Version 1.1 incorporates errata corrections and provides a mechanism to undeclare prefixes. Comments are welcome through 28 September. Read about the XML Activity. (News archive)

XML 1.1, Namespaces in XML 1.1, at
Proposed Recommendation


XML 1.1, Namespaces in XML 1.1, at
Proposed Recommendation
11/10/2003 11:13 PM
Plodding slowly toward Recommendation, the Proposed Recommendations for XML 1.1 and Namespaces in XML 1.1 have been published. Review for both ends 5 December 2003.

Namespaces 1.1 in Last Call (xmlhack)


Namespaces 1.1 in Last Call (xmlhack) 09/09/2002 01:34 PM

XML 1.1 and Namespaces in XML 1.1 Are
W3C Proposed Recommendations


XML 1.1 and Namespaces in XML 1.1 Are
W3C Proposed Recommendations
11/05/2003 03:39 PM
2003-11-05: W3C is pleased to announce the advancement of Extensible Markup Language (XML) 1.1 and Namespaces in XML 1.1 to Proposed Recommendations. Comments are welcome through 5 December. XML 1.1 addresses Unicode, control character, and line ending issues. Namespaces 1.1 incorporates errata corrections and provides a mechanism to undeclare prefixes. Read about the XML Activity. (News archive)

Features: XML Namespaces Don't Need URIs


Features: XML Namespaces Don't Need URIs 04/13/2005 05:58 PM
Mike Day argues that using URIs to identify XML namespaces was a terrible mistake that's caused far more trouble than it's worth.

Namespaces 1.1 Becomes a W3C Candidate
Recommendation


Namespaces 1.1 Becomes a W3C Candidate
Recommendation
12/18/2002 04:12 PM
18 December 2002: W3C is pleased to announce the advancement of Namespaces in XML 1.1 to Candidate Recommendation. Identified by IRI references, namespaces qualify element and attribute names in XML documents. Version 1.1 incorporates errata corrections and provides a mechanism to undeclare prefixes. Comments are welcome through 14 February. Read about the XML Activity. (News archive)

Never Mind the Namespaces: An XSLT RSS
Client


Never Mind the Namespaces: An XSLT RSS
Client
01/03/2003 12:48 AM
In his latest Transforming XML column, Bob DuCharme develops a simple, yet functional RSS aggregation client in XSLT.
Grok Description matches for XML Namespaces Support in Python Tools, Part 1
GrokA matches for XML Namespaces Support in Python Tools, Part 1

Blender 2.33


Blender 2.33 05/02/2004 08:57 PM

Blender 2.30


Blender 2.30 11/04/2003 06:00 PM
A very fast and versatile 3D modeler/renderer.

Blender 2.31a


Blender 2.31a 12/04/2003 07:18 AM
A very fast and versatile 3D modeler/renderer.

Blender 2.36


Blender 2.36 12/30/2004 11:44 PM
A very fast and versatile 3D graphics creation suite.

Blender 2.34


Blender 2.34 08/05/2004 07:27 PM
A very fast and versatile 3D graphics creation suite.

'Preview' de Blender 2.3


'Preview' de Blender 2.3 11/06/2003 02:42 PM

BEAST BLENDER


BEAST BLENDER 06/05/2005 11:30 PM
create a being that has never existed .. BEAST BLENDER .. any better .. beest

beastblender.com
track this site | 2 links


BLENDER ARTICLES


BLENDER ARTICLES 04/20/2004 08:38 AM
the worst bands in the history of rock .. their being named .. top 50 worst list .. things like this

blender.com/articles/article_466.html
track this site | 5 links


Blender Adds Raytracing


Blender Adds Raytracing 12/13/2003 08:16 AM

National Barbie in a Blender Day


National Barbie in a Blender Day 07/14/2004 08:22 AM
Freeculture.org is throwing a "National Barbie in a Blender Day" to celebrate the victory over Mattel, which sued a photographer for taking pictures of nude Barbies.
Freeculture.org has launched an official site for the National Barbie-in-a-Blender Day project, at www.barbieinablender.org. Users are invited to submit artistic pieces inspired by Forsythe's "Food Chain Barbie" series to blended@barbieinablender.org for the site's upcoming gallery of submitted work.
Link (Thanks, Alex!)

Hand-Cranked Blender


Hand-Cranked Blender 03/22/2005 04:46 PM

hand_blender.jpgProviding you with the perfect excuse for a belated Daiquiri, Lehman's Hard-Cranked Blender lets you hit speeds of 3600 rpm (based on 80 turns/minute) and blend just about anything without using any electricity. Just $100, the 5-cup capacity blender has two gear ratios allowing for "low" and "high" speeds, so if you want "Puree", it's on you. Nevertheless, it's quite the polar opposite of the Gas-Powered Blender. "Because being old-fashioned is always in fasion," as Lehman's proudly states.

Catalog Page [Lehman's via Tre ehugger]


instinctive-blender: A tasty 3D fork


instinctive-blender: A tasty 3D fork 04/08/2005 10:16 AM
You may be familiar with Blender 3D, the open source modeling, animation, rendering, and post-production package from the Blender Foundation. If you have used Blender for longer than a few weeks and miss some aspects of the old pre-2.3 user interface, or if you are looking for some interesting features to improve your 3D experience, you should get to know instinctive-blender, a fork created by the small German company instinctive mediaworks.

Blender 2.33 Re-enables Game Engine


Blender 2.33 Re-enables Game Engine 05/01/2004 11:38 AM

Cierra foro hispano de Blender


Cierra foro hispano de Blender 09/08/2004 03:41 AM

Blender Demo Reel Released


Blender Demo Reel Released 07/31/2004 10:46 AM

Primero pasos de nueva Comunidad Blender


Primero pasos de nueva Comunidad Blender 09/22/2004 04:44 AM

Barbie in a Blender responds to Orrin
Hatch


Barbie in a Blender responds to Orrin
Hatch
07/28/2004 05:48 AM
Ind uce Act. 85.5k JPEG Link (Thanks, Donna!)

Blender alcanza la categorķa de CAD para
ingenierķa


Blender alcanza la categorķa de CAD para
ingenierķa
01/16/2004 11:02 AM

Blender Conference Closes, Version 2.3
Released


Blender Conference Closes, Version 2.3
Released
11/05/2003 11:37 PM
Qbertino writes "The 3-day Blender Conference 2003 has closed as of last Sunday. It was a successful one, with the front line of open source 3D people ...

Seminarios y talleres sobre Blender en
Barcelona


Seminarios y talleres sobre Blender en
Barcelona
11/16/2003 07:06 AM

GarageGames' Torque Game Engine adds
Blender support


GarageGames' Torque Game Engine adds
Blender support
02/16/2004 12:09 PM
GarageGames has lowered the barrier to entry for 3D game designers looking to put together a quality game without setting out a huge amount of money. They've announced the release of a new exporter that enables users of Blender, the open-source 3D content creation software, to bring their projects to the Torque Game Engine, GarageGames' own 3D game engine software. Best of all, all the software runs on Mac OS X.

Backporting from Python 2.3 to Python
2.2


Backporting from Python 2.3 to Python
2.2
06/08/2004 11:18 PM

We have a home-grown templating system at work, which I intend to dedicate an entry to some time in the future. We originally wrote it in Python 2.2, but upgraded to Python 2.3 a while ago and have since been evolving our code in that environment. Today I found a need to load the most recent version of our templating system on to a small, long neglected application that had been running the original version ever since it had enough features to be usable.

Unfortunately, this application was running on a server that only had Python 2.2. Installing Python 2.3 would have been somewhat more painful here than on other servers we run for reasons I won't go in to, so I decided to have a go at getting our current code to run under the older Python version.

In the end, I only had to make three minor changes, all at the top of the file in question.

  1. I added from __future__ import generators as the very first line of the file. We use generators (with the yield statement) in a few places - this feature was only properly added in Python 2.3, but was made available in Python 2.2 as a "future enhancement" through the aforementioned obscure import.

  2. I added True, False = 1, 0 on the next line down. Surprisingly, Python 2.2 had no support for a boolean type and instead used a test for non-zero instead. The above line defines constants that behave enough like Python 2.3's True and False to avoid any problems.

  3. I defined an enumerate function, which was introduced for real in Python 2.3. Here's the code I used:

    
    def enumerate(obj):
        for i, item in zip(range(len(obj)), obj):
            yield i, item 
    

All in all it only took around ten minutes to put the above together, after which the script worked just fine. It was interesting to see how our code had grown to rely on Python 2.3 features without us realising it.


MPY (MPi for pYthon)


MPY (MPi for pYthon) 06/26/2004 05:20 PM
MPY Version 0.1 Released

XML with Xen and with Python


XML with Xen and with Python 12/19/2004 03:53 PM
Here is a comment on the paper "Programming with Circles, Triangles and Rectangles" by Erik Meijer et al. Perhaps interesting for XML programmers.

Another look at PHP and Python


Another look at PHP and Python 02/10/2004 02:46 AM
Postscript: Some people have got the impression from this article that I am moving away from PHP. That is far from the truth. I will continue to use PHP extensively today, tomorrow and for the forseeable future.

I find Python harder than PHP.

It could be because we are programming multi-threaded networked servers in Python, and that could be inherently harder than coding dynamic web-sites. Another reason could be lack of familiarity with Python. For example, I couldn't find the equivalent of htmlspecialchars and other functions, so i had to roll my own.

Despite all these issues, we are continuing to develop this in Python because (AFAIK) PHP does not have stable networking frameworks.

So what do I like about Python?

- Neat Syntax

The use of indentation for compound statements discourages deep nesting, and thus more modular code.

- More Safety Checks

In PHP, when you search using a regular expression, an associative array is returned. In Python, a typed object, "match" is returned when a regular expression search is performed, and not a generic dictionary. You cannot perform arithmetic on strings, an explicit cast is required; neither can you concatenate numbers with strings, explicit typecasts are needed.

- Supports Multi-Threaded Apps

There exists a global lock in Python that prevents multi-threading from working effectively on multiple processors - nevertheless Python has reasonable thread support and allows me to develop reasonably responsive servers.

- Python's Compiler is Standard

Python has a standard compiler and byte-code format. There is no such standard in the PHP world, and most ISP's don't support Zend or Turck MMCache encoded PHP. Better still, a debugger is included in the package too.

- Python Fully Supports Unicode

Python 2.0 and later has full support for unicode. For example to convert big5 to unicode is the simple:

    unicode_str = unicode(tw_chinese_string, 'big5')

In contrast, see how complicated it is to perform double-byte to unicode conversions in PHP (see User Notes).

The only issue i had with the unicode support is that it doesn't come with a complete set of double-byte decoders (eg. big5, gb). After a 20 minute google search, i found this set of python cjk decoders.

And what I dislike about Python

- Python Is Not Rapid Enough?

I think that PHP is a better tool for rapid application development, especially for web-sites. Minor type issues are handled for you transparently in PHP. In Python, once a variable is set, stricter type-checking is performed on most operations.

So you can argue that Python is safer. But PHP coding is definitely more rapid.

Another thing i dislike is that Python's import/load facility does not check .py file modification dates. If i modify a .py file, Python's run-time environment will not recompile it until i restart Python, or perform a reload manually from the command-line interpreter.

- Database Access

Python does not have official database drivers, and you have to select and download these drivers yourself. It's easy to get it wrong. For example, only after coding the adodb_odbc module using PythonWin odbc extension did i realize how awful PythonWin odbc was. I then found the mxODBC extension - unfortunately the mxODBC requires commercial licensing ($75 per CPU).

- Python is Not That Popular

Popularity is relative. There are lots of Python programmers - but there are perhaps 3 times more PHP programmers than Python ones. In Malaysia, the ratio of PHP to Python programmers is probably much worse (10:1?). And there are many training centers offering PHP courses. AFAIK, there are no centers in Malaysia offering Python training. A quick search in monster.com reveals the following (numbers might change over time):

PHP: 131 jobs
http://jobsearch.monster.com/jobsearch.asp?q=php&re=0&sort=rv&tm=&fn=6 60&vw=b&cy=US&brd=1%2C1862%2C1863

Python: 41 jobs
http://jobsearch.monster.com/jobsearch.asp?q=python&re=0&sort=rv&t m=&fn=660&vw=b&cy=US&brd=1%2C1862%2C1863


PHP Everywhere: Python vs. PHP?


PHP Everywhere: Python vs. PHP? 03/30/2005 09:12 AM
From PHP Everywhere today:

Python-SIP 3.9


Python-SIP 3.9 12/08/2003 04:42 PM
A tool to generate Python bindings from C++ code.

Python 2.3.3


Python 2.3.3 12/30/2003 05:13 PM
A high-level scripting language.

XML Namespaces Support in Python Tools, Part 1

The following phrases have been identified by the grok system as matching this entry: blender python xml

















Also check out:


Grok

Ipod Porn on the
Rise

Brief Abstract of
Wikipedia's
Mesothelioma Cancer
page

Get first aid
instructions in your
cell phone

IE is crap
JSPWiki gains
podcasting support

The Library of
Congress Comes Home

The Beauty of REST
Microcontent
Management with
Syncato

Growing Interest in
XML Seen at AIIM
Conference on
Content and Records
Management

Tunneling Variables
PyCon 2004: Making
Python Faster and
Better

Getting in Touch
with XML Contacts

Using libferris with
XML

The XML.com
Interview: Jeff Barr

Utility Stylesheets
From P2P to Web
Services: Addressing
and Coordination

SVG and Typography
Fair use, or not
fair?

Google Gets Makeover
Google Gets Its
Groove On

Google Not Fooling
Around: Launches
Gmail

Google to Unveil
Free E-Mail

Free E-Mail With a
Steep Price?

Gmail Takes Heat
from Privacy Groups

The Secret Source of
Google's Power

Turning Search Into
a Science

Google Gets More
Gmail Guff

I wish I didn't
understand

Panda Joke V
Global Feature
Request

Outlook as a
platform

Innovations in
Self-Help

Are web companies
tech or media?

Fools, etc.
talking to the
outsiders

Content Targetting
for Personal Ads

Great Moments in
Advertising

Rumor Today:
Portales Revised

Impulse Buy
NetWare Client For
Mac OS X IP Released

Apple Dealers Deny
iPod's "Dirty
Secret"

Apple Granted Patent
For Adjustable
Screen Snake Arm

Analysts Look For
Improvement In G5
Sales

Making A Killing On
eBay

No April Fools Joke
For Apple Reps

Donn Denman: Apple
Is Getting 'More
Connected'

Apple Aims At
Architects

Apple Makes Noise
Perfect Storm
Brewing For
Microsoft?

Reduce CPU Usage
Pink iBook
Speculation: The
Real iPod Killer

12" iBook 800MHz G4
RapidWeaver 2.1.1
Web Page Design
Software

A Two-Button
Scrollable Apple
Mouse?

what is grok?