File: list.xml

package info (click to toggle)
gxml 0.20.4%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,364 kB
  • sloc: xml: 131,277; ansic: 786; javascript: 328; python: 88; makefile: 35; sh: 11
file content (20 lines) | stat: -rw-r--r-- 989 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<Object>
  <Property ptype="gint32" pname="age">28</Property>
  <!--
    TODO: For lists,
    * should we have the explicit length? (Not necessary)
    * should the type be in the parent? 
    * should the list parent be a Property or something more complex?
      * probably something special, leave Property for simple flat properties, let collections and richer objects be denoted separately?
    * should we include a * for pointer?
    * should the name of the children be index values? (Not necessary, can be inferred, but then what should the name be?)
    * how much special treatment should collection types get?  should serialisation code go into GList's own source or be handled by gxml?
    -->
    
  <Property ptype="GList" pname="primes">
    <Property ptype="gint32" pname="0">2</Property>
    <Property ptype="gint32" pname="1">3</Property>
    <Property ptype="gint32" pname="2">5</Property>
    <Property ptype="gint32" pname="3">7</Property>
  <Property>    
</Object>