[xml] How can I get this property value?
- From: ex <epigramx yahoo com>
- To: xml gnome org
- Subject: [xml] How can I get this property value?
- Date: Sun, 22 Aug 2010 02:23:46 -0700 (PDT)
For an XML that has
<?xml version="1.0" encoding="utf-8"?>
<COLLADA version="1.4.0" xmlns="http://www.collada.org/2005/11/COLLADASchema">
<library_geometries>
<geometry id="Cube">
<mesh>
<source id="Cube">
<float_array count="24" ">1 2 3</float_array>
[..]
I'm getting properly "1 2 3" string with a
if (!xmlStrcmp(cur_node->name, (const xmlChar *) "mesh")
printf(": %s\n",xmlNodeGetContent(cur_node->children->next);
But how do I get the value of 'count'? ("count="24"")
e.g.
printf(": %s\n", xmlGetProp(cur_node->children->next,(const xmlChar *)"count"));
isn't right.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]