Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sysinst split project - The Configuration File



On Dec 14, 2009, at 4:40 PM, Thor Lancelot Simon wrote:

> Case 2: XML-like syntax -- with a huge artificial advantage because I've
>       neatly indented it.
> 
>       <thing>
>               <element-list>
>                       <element>1</element>
>                       <element>2</element>
>                       <element>3</element>
>                       <element>4</element>
>                       <element-list>
>                               <element>5</element>
>                               <element>6</element>
>                       </element-list>
>               </element-list>
>       </thing>

Of course, that is only one way to use XML.  That could be written in a fashion 
somewhat easier on the eyes if your schema is designed for it:

        <thing>
                <element-list>
                        <element value="1"/>
                        <element value="2"/>
                        <element value="3"/>
                        <element value="4"/>
                        <element-list>
                                <element value="5"/>
                                <element value="6"/>
                        </element-list>
                </element-list>
        </thing>


-- thorpej



Home | Main Index | Thread Index | Old Index