=  Cls,   XML  YAML?

<i> </i>:   Cls   XML
  2001-      {CURL}[http://www.curl.com].
   XML    ,    .  , 
 C/C++      XML     XML
     .    
 Cls         
,  XML.       , 
XML   (     ),  
 {YAML}[http://www.yaml.org]  {JSON}[http://www.json.org].   
  Cls       .

== Cls  XML

=== Pro

==== Cls  XML

 Cls     C/C++
escape-         
  .

==== Cls  XML

   :
*       ;
*   ,     -
       .

     XML  Cls.  Cls  
   :

_XML_
  <service name="DayTime">
    <ip value="localhost:3028"/>
    <ip value="my.site.org:5000"/>
    <message name="GetCurrentTime"/>
    <message name="GetUTCTime">
      <priority value="0"/>
      <field name="localTime" type="String"/>
      <field name="timeZone" type="String"/>
    </message>
  </service>
_Cls_
  {service
    {name "DayTime"}
    {ips localhost:3028 my.site.org:5000 }
    {message GetCurrentTime}
    {message GetUTCTime
      {priority 0}
      {field {name "localTime"} {type String}}
      {field {name "timeZone"} {type String}}
    }
  }

==== Cls      

  XML,         
        . Cls 
 .

==== 

 Cls  ,      .  , 
        . , 
    {param {value}}    . 
   XML  value  <param>   ,  .

=== Contra

==== XML    XML

XML  -  -    . 
        
.    . ,  XML  
 ,        ,
    .

==== Cls   Unicode

.   Cls    8-  (ASCII).

====  Cls    C++  Ruby

, cls-      
.      Cls   .

== Cls  YAML

  Cls  YAML   ,  Cls   
      .    Cls,
,   log- (    
    ).

Cls     . ,  
  "  ". ,   , 
 Cls        
  . ,  Cls   
 :
  {some-config
    {first-part
  {internal-tag "autogenerated"}
  {internal-tag "another autogenerated"}
    }
  }
,     YAML.

          YAML. , 
    ,   
  .      
    ,   -- . 
Cls       :
  {filter
    {include "regex1" }
    {exclude "regex2" }
    {include "regex3" }
  }
 YAML      Hash-,    Hash- 
   /:
  filter:
    -
      include: regex1
    -
      exclude: regex2
    -
      include: regex3

       YAML:  
    .

==   

===  

Cls         .
     ,    
 .      
.

=== Log-   

     log-    
       .   
   (,  ,  -   
  ,  ).    
 . ,    grep  
    (     , 
           
 ,    ).

   YAML       
log-. XML  ,    
   XML-   .  Cls  
  ClsRuby::OneLineFormatter.

== 

 Cls    ClsRuby (  cls_2  C++)    
,    --   -  . ,  
     ,       
   .   Cls 
    - (  
      ).    
   SAX  XML.       ,
  -      .
   .      
  -     .

    DOM- XML    YAML  
  ,     DOM- 
.    ,   .

<b></b>.   XML  ,  
    XML   .

# vim:ts=2:sts=2:sw=2:expandtab:ft=txt:tw=78

