Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.218.341 Times

loxun 0.8

Company: Thomas Aglassinger
Date Added: October 13, 2013  |  Visits: 363

loxun

Report Broken Link
Printer Friendly Version


Product Homepage
Download (33 downloads)



loxun is a Python library that can be used to write large output in XML using Unicode and namespaces. Of course you can also use it for small XML output with plain 8 bit strings and no namespaces.<br /><br />Here is a very basic example. First you have create an output stream. In many cases this would be a file, but for the sake of simplicity we use a StringIO here:<br /><br /> >>> from StringIO import StringIO<br /> >>> out = StringIO()<br /> >>> xml = XmlWriter(out)<br /><br />Now write the content:<br /><br /> >>> xml.addNamespace("xhtml", "http://www.w3.org/1999/xhtml")<br /> >>> xml.startTag("xhtml:html")<br /> >>> xml.startTag("xhtml:body")<br /> >>> xml.text("Hello world!")<br /> >>> xml.tag("xhtml:img", {"src": "smile.png", "alt": ":-)"})<br /> >>> xml.endTag()<br /> >>> xml.endTag()<br /> >>> xml.close()<br /><br />And the result is:<br /><br /> >>> print out.getvalue().rstrip("rn")<br /> < ?xml version="1.0" encoding="utf-8"? ><br /> < xhtml:html xlmns:xhtml="http://www.w3.org/1999/xhtml" ><br /> < xhtml:body ><br /> Hello world!<br /> < xhtml:img alt=":-)" src="smile.png" / ><br /> < /xhtml:body ><br /> < /xhtml:html ><br /><br />Here are some key features of "loxun":<br /><br />?*A* small memory foot print: the document is created on the fly by writing to an output stream, no need to keep all of it in memory.<br />?*A* easy to use namespaces: simply add a namespace and refer to it using the standard namespace:tag syntax.<br />?*A* mix unicode and string: pass both unicode or plain 8 bit strings to any of the methods. Internally loxun converts them to unicode, so once a parameter got accepted by the API you can rely on it not causing any messy UnicodeError trouble.<br />?*A* automatic escaping: no need to manually handle special characters such as < or & when writing text and attribute values.<br />?*A* robustness: while you write the document, sanity checks are performed on everything you do. Many silly mistakes immediately result in an XmlError, for example missing end elements or references to undeclared namespaces.<br />?*A* open source: distributed under the GNU Lesser General Public License 3 or later.<br /><br />loxun-0.8.zip#md5=a0b0891c0f47cf638727302fa76491f2

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Document Gtgtgt Loxun Namespaces Output Plain Print Result Small Stream Stringio Strings Unicode Write Writing Xhtmlbody Xhtmlhtml Xmlendtag
Users rating: 0/10

License: Freeware Size: 20.48 KB
USER REVIEWS
More Reviews or Write Review


LOXUN RELATED
Finance  -  iOrgsoft PDF to Text Converter 2.0.1
iOrgsoft PDF to Text Converter is one powerful, yet easy-to-use PDF solution tool capable of converting any reliable Adobe Portable Document Format (PDF) file to plain text documents. It runs as standalone software, with Adobe Acrobat or Reader...
 
File Cataloguers  -  PrintFolders 2.0
PrintFolders provides you an easy way to print contents of folders into a plain-text (TXT) or HTML file. It is a simple and easy-to-use utility which helps you to catalogue masses of files automatically. That is especially useful for listing MP3...
408 KB  
Network & Internet  -  mod_loopback 2.1
mod_loopback module serves as a web client debugging tool and simply sends back plain text output of everything received conerning a request: the request line, headers, any content received from a POST or PUT, and if installed, any data passed...
13.31 KB  
Network & Internet  -  eCromedos 1.0.1
eCromedos is a document preparation system that allows concurrent publication of documents in print and web. Documents are written in an XML-conforming markup language and converted to HTML or printable document formats by means of a special...
368.64 KB  
Utilities  -  PlainDoc 1.55
PlainDoc (pd2tex) document production system allows you to write documents as normal text files. pd2tex tool converts the plain text files to: - TeX which then gets converted to pdf (you need pdflatex tool installed) - DocBook (dbx) which can...
102.4 KB  
Development Tools  -  Joggle Board Generator 1.0
Generates four 5x5 joggle boards, optimized for letter-size print output. For the rules of joggle, see http://joggle.pixelsharp.com/.
10 KB  
Database Tools  -  QueryPrint 1.0
QueryPrint class allows you to print the result of a database query as an HTML table. A separate module defines the printing. It also allows the result to be displayed on multiple pages.
10 KB  
Programming  -  CGI::WebOut 2.25
CGI::WebOut is a Perl module used to make CGI programmer's work more comfortable. The main idea is to handle output stream (STDOUT) to avoid any data to be sent to browser without Content-type header. Of cource, you may also send your own headers...
10.24 KB  
MP3 Tools  -  FlipPageMaker PDF to Text 1.0.0
Flippagemaker PDF to Text is small application that lets you perform free instantaneous conversions without the Acrobat software. This freeware is especially designed to convert your PDF (Acrobat) file to plain text. It extracts the PDF file's...
1023.62 KB  
Word Processing  -  Danet Studio 1.33
Danet Studio provides a powerful environment for creating, editing, annotating, managing and displaying high quality documents. With an advanced viewing controls, combined with powerful element controls capabilities take Danet Studio to a new...
5.03 MB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB