XML con sintaxis pytónica.

Juan Ignacio Rodriguez de Leon jileon en parcan.es
Mie Mayo 2 16:31:35 CEST 2007


tny escribió:
> El mié, 02-05-2007 a las 09:24 -0300, Lautaro Cozzani escribió:
>> On 5/2/07, tny <a.porrua en gmail.com> wrote:
>>> Hola listeros, el otro día se me ocurrió que el xml podría tener una
>>> sintaxis más amigable, y como no hay sintaxis más bónita que la de
>>> python, como muestra un botón.
>>>

Puedes mirar algo que se parece a esto: JSON (JavaScript Object 
Notation). A pesar de su nombre, no es privativo de JavaScript, y hay
un parser de jspon en python: simplejson. Lo ha usado para
un par de proyectos y funciona bastante bien.

De la página web de json:

> JSON (JavaScript Object Notation) is a lightweight data-interchange  
> format. It is easy for humans to read and write. It is easy for machines
> to parse and generate. It is based on a subset of the JavaScript 
> Programming Language, Standard ECMA-262 3rd Edition - December 1999.  
> JSON is a text format that is completely language independent but uses 
> conventions that are familiar to programmers of the C-family of 
> languages, including C, C++, C#, Java, JavaScript, Perl, Python, and 
> many others. These properties make JSON an ideal data-interchange 
> language.

http://www.json.org/
http://cheeseshop.python.org/pypi/simplejson

------------ próxima parte ------------
_______________________________________________
Python-es mailing list
Python-es en aditel.org
http://listas.aditel.org/listinfo/python-es


Más información sobre la lista de distribución Python-es