Barrapunto
La información que te interesa
http://barrapunto.com/

Title    YAML: Una alternativa a XML sin > ni <
Date    Sábado, 19 Mayo de 2001, 12:34h
Author    Ricardo Estalmán
Topic   
from the Lots-of-Insidious-Superfluous-Angle-Brackets dept.
http://barrapunto.com/article.pl?sid=01/05/18/1738238

Clark Evans ha presentado YAML (Yet Another Markup Language). Las funciones son similares a las de XML pero no hay todas esas marcas de <abrir> y </cerrar>. Ha tomado ideas del RFC822 (cabeceras), C (\n), Perl (usar insultos de tebeo para marcar tipos), y Python (sangrado para hacer bloques). De momento la especificación está en la versión 0.19a. ¿Resuelve alguno de tus problemas? ¿Qué te parecería el YAHTML?

Un ejemplo

buyer    : %
    address     : %
       city       : Royal Oak
       line one   : 458 Wittigen's Way
       line two   : Suite #292
       postal     : 48046
       state      : MI
    family name : Dumars
    given name  : Chris
date     : 12-JAN-2001
comments :
    Mr. Dumars is frequently gone in the morning
    so it is best advised to try things in late
    afternoon. \nIf Joe isn't around, try his house\
    keeper, Nancy Billsmer @ (734) 338-4338.\n
delivery : %
    method : UZS Express Overnight
    price  : 45.50
invoice : 00034843
product : @
    %
        desc      : Grade A, Leather Hide Basketball
        id        : BL394D
        price     : 450.00
        quantity  : 4
    %
        desc      : Super Hoop (tm)
        id        : BL4438H
        price     : 2,392.00
        quantity  : 1
tax      : 0.00
total    : 4237.50

Links

  1. "ha presentado" - http://www.xmlhack.com/read.php?item=1213
  2. "YAML" - http://yaml.org/

© Copyright 2018 - Barrapunto S.L., All Rights Reserved

printed from Barrapunto, YAML: Una alternativa a XML sin > ni < on 2018-06-15 15:08:26