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

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

Serving Software Downloads in 976 Categories, Downloaded 29.541.845 Times

loxun 0.8

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

loxun

Report Broken Link
Printer Friendly Version


Product Homepage
Download (16 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  
Document Management Tools  -  FolderMill 4.1
FolderMill monitors a folder and automatically prints or converts to PDF, JPG or TIFF all new documents and image files. System administrator defines special 'Hot folders' for monitoring and sets Actions to be performed. After this all employees...
71.33 MB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
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  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB