Software Index
Linux Software Utilities  

xmlwitch

download download home home   report broken
important software information
company name:
Jonas Galvez
license: Freeware
minimum requirements:
functional limitations:
xmlwitch description
xmlwitch is a reimplementation of Ruby's Builder library written and maintained by Jonas Galvez in the Python language. It uses a very different technique (Python's context processors) but delivers an extremely similar syntax. xmlwitch leverages the with statement which makes it dependent on Python 2.5 and above.

Since the number of patches and other contributions have been greater than what I expected, I've created a mailing-list to help coordinate further improvements (if at all necessary): http://groups.google.com/group/xmlwitch-dev.

Example:

xml = builder(version="1.0", encoding="utf-8")
with xml.feed(xmlns='http://www.w3.org/2005/Atom'):
xml.title('Example Feed')
xml.link(None, href='http://example.org/')
xml.updated('2003-12-13T18:30:02Z')
with xml.author:
xml.name('John Doe')
xml.id('urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6')
with xml.entry:
xml['my:elem']("Hello these are namespaces!", **{'xmlns:my':'http://example.org/ns/', 'my:attr':'what?'})
xml.my__elem("Hello these are namespaces!", xmlns__my='http://example.org/ns/', my__attr='what?')
xml.quoting("< > & ' "", attr="< > & ' "")
xml.title('Atom-Powered Robots Run Amok')
xml.link(None, href='http://example.org/2003/12/13/atom03')
xml.id('urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a')
xml.updated('2003-12-13T18:30:02Z')
xml.summary('Some text.')
with xml.content(type='xhtml'):
with xml.div(xmlns='http://www.w3.org/1999/xhtml') as div:
xml.label('Some label', for_='some_field')
div.text(':')
xml.input(None, type='text', value=''). galvez's xmlwitch at master - GitHub. Python implementation of Ruby's builder.
Similar software
XWiki (Popularity: ) : XWiki 1.9 / 2.0 Milestone 1

XWiki project is an open source wiki written in Java and under a LGPL license.

A wiki is a website that allows you to collaborate with others. XWiki offers all the features that you can find ...

xtest (Popularity: ) : xtest is a pyrex interface to XTest including faking multi-key presses such as Control-Shift-s.. .
User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Similar scripts
xmlwitch (Popularity: ) : This is a Python library that generates idiomatic XML code through context managersxmlwitch has two classes: Builder and Element.Builder takes three parameters:encoding, which is required and defaulted to UTF-8;version, whose optional presence adds a processing instruction at the top of ...
Rate me
supported os's
stats
downloads 6
version 0.1.0
size in Kb 10
popularity   
718/1272475
user rating 0/10
our rating 0 Stars
share info
Recommend xmlwitch
Report spyware
New Software
Popular Software
Latest Reviews