[xml] Getting node name

Date view Thread view Subject view Author view

From: Hilaire Fernandes (hilaire.fernandes@iname.com)
Date: Tue May 18 1999 - 12:07:18 EDT


In this exemple I don't know how to get the node name freepoint, middle
:

<?xml version="1.0" standalone="yes"?>
<drgeo>
   <freepoint label="A" x="1.3" y="10"/>
   <freepoint label="B" x="13" y="10"/>
   <middle label="I" point1="A" point2="B"/>
</drgeo>

I can get there attributes with someting like

  doc = xmlParseFile("exemples/test.xml");
  tree = doc->root->childs;
  printf("%s\n",xmlGetProp(tree,"label"));
          
But I also need the node name.
Is there a function -I can't find it- for this or the only way is
node->name ?

-- 
Hilaire Fernandes 
Dr Geo project http://www.drgeo.seul.org

---- Message from the list xml@rufus.w3.org Archived at : http://rufus.w3.org/veillard/XML/messages to unsubscribe: echo "unsubscribe xml" | mail majordomo@rufus.w3.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:27 EDT