[xml] How can I get this property value?

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";>
  <geometry id="Cube">
    <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"")


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]