Page 1 of 1

XML-RPC

PostPosted: Jul 3, 2008 @ 8:42am
by Gar
Hi Edge,

I understand the sample xml-rpc, since the xml file is regular. If I got the file as following, how can I get the value of model, name, and so on?
Thanks.

Gar

<?xml version="1.0" ?>
<composar os="nt" utc="Thu, 22 May 2008 12:30:47 +0000" version="0.1">
<scene>
<videos />
<trackers />
<markers>
<marker model="C:\model\cow.osg" name="C:\Data\patt.hiro" position="0.000000 0.000000 20.000000" rotation="0.000000 0.000000 14.000000" scale="4.000000 4.000000 4.000000" script="C:\Scripts\hello.py" />
</markers>
</scene>
</composar>

PostPosted: Jul 3, 2008 @ 10:26am
by edge
Hi Gar,

Unfortunately, you can't parse your example file with the XML-RPC class. You need to use ClassEXml, more information is available here: http://www.edgelib.com/index.php?node=1208

A more advanced XML class is planned for the upcoming EDGELIB release, this new class is able to store xml nodes (like ClassEXmlRpc).