Software: Apache/2.0.54 (Fedora). PHP/5.0.4 uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /usr/share/doc/PyXML-0.8.4/xmlproc/ drwxr-xr-x |
Viewing file: Select action/file-type: xmlproc and namespacesxmlproc now supports XML namespaces through the addition of the xml.parsers.xmlproc.namespace module. In this module there is a NamespaceFilter class which is implemented as a parser filter. This means that it is registered with the parser as an application, and that your application then registers with the filter as the real application. The parser will then parse as normal and send parse events to the NamespaceFilter, which will do namespace transformations and pass the events on to your application. An exampleThis is an example of how namespace processing can be set up:
MyApplication will now receive parse events where all prefixed names have been processed into names consisting of the namespace URI, followed by a space and then the local part of the name. If this isn't clear to you, try using the -n option to xvcmd.py and xpcmd.py and -o x to see what the filter does. The NamespaceFilter interfaceThis is the complete NamespaceFilter interface:
Last update 2000-05-11 14:20, by Lars Marius Garshol. |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0029 ]-- |