I am a total newbee to XML and xml parsing. I need to be able to build and parse an XML tree like the one below. What libxml routines would you suggest. The XML is small so would you suggest using DOM? Also, you'll see that in my tree I've got "field name =" and "value=". How do I access these? Thank you for any help. See XML tree below: <?xml version="1.0" encoding="UTF-8"?> <data_transfer> <data> <DTO_Ref ID="OperatorLoginInstance_234121"/> </data> <DTO ID="OperatorLoginInstance_234121" name="OperatorLoginInstance" version="12"> <primary_key>234121</primary_key> <field name="terminalid" value="454363"/> <field name="purpose" value="454363"/> <field name="uid" value="454363"/> <DTO_Relationship name="OperatorRoleLog"> <DTO_Relation_List> <DTO_Ref ID="OperatorRoleLog_234000"/> </DTO_Relation_List> </DTO_Relationship> </DTO> <DTO ID="OperatorRoleLog_234000" name="OperatorRoleLog"> <primary_key>234000</primary_key> <field name="operatorrole" value="alignment"/> <field name="roleinstance" value="bearing1"/> </DTO> </data_transfer> -- Dan Galovan A new subscriber to the xml email list
Attachment:
dgalovan.vcf
Description: Card for Dan Galovan