[PD-dev] XML again
Georg Holzmann
grhPD at gmx.at
Sat Dec 4 10:56:13 CET 2004
Hallo!
So, I think this XML representation could be okay (see bottom of the mail):
Now I'm unsure if I should implement the parser myself or if I should use a
XML parser (e.g. Xerces from apache) ?
Thanks for any thoughts,
LG
Georg
PS:
XML examples:
e.g.: a list container:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE container SYSTEM "irgendwas.dtd">
<container>
<h_list> <!-- is an element of PDContainer,
so there could also be other
datastructures like the normal
PD array -->
<list> <!-- this is the pd list -->
<float> 34 </float>
<symbol> afsdf </symbol>
</list>
<float> 423 </float>
<symbol> sfad </symbol>
<list>
<float> -4 </float>
<symbol> herc </symbol>
</list>
</h_list>
</container>
or a map (uses key-value pairs):
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE container SYSTEM "irgendwas.dtd">
<container>
<h_map>
<key>
<list>
<float> 34 </float>
<symbol> afsdf </symbol>
</list>
<float> 423 </float>
</key>
<value>
<symbol> sfad </symbol>
<list>
<float> -4 </float>
<symbol> herc </symbol>
</list>
</value>
</h_map>
</container>
--
NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis!
More information about the Pd-dev
mailing list