[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[xml] Newbee XML parsing questions
- From: Dan Galovan <dgalovan thalesraytheon-us com>
- To: "xml gnome org" <xml gnome org>
- Subject: [xml] Newbee XML parsing questions
- Date: Mon, 03 Feb 2003 13:04:29 -0800
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
begin:vcard
n:Galovan;Dan
tel;fax:714.446.3244
tel;work:714.446.4140
x-mozilla-html:FALSE
org:Thales-Raytheon Systems;ACCS Fullerton Programs
version:2.1
email;internet:dgalovan thalesraytheon-us com
title:Principal Software Engineer
adr;quoted-printable:;;1801 Hughes Drive,=0D=0ABuilding. 624, Main Station N108;Fullerton;California;92834-3310;USA
fn:Dan Galovan
end:vcard
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]