[Xitami-Dev] using sfl xml
Shivakumar Gopalakrishnan
xitami-dev@lists.xitami.org
Wed, 10 Sep 2003 15:29:54 -0700 (PDT)
Hi
Try xml_get_attr_ic function to get the attribute
value.
Shivakumar Gopalakrishnan
> Today's Topics:
>
> 1. using sfl xml (Leipzig, germany) (Thomas
> Burghardt)
>
> Dear programmers,
> we would like to use the sfl library to read an xml
> file.
> The xml files looks like this short example:
>
> <Statistical_Metadata
> dateTimeSent=3D"2003-07-01T12:14:25" =
> lastUpdated=3D"2002-04-18" =
>
xmlns=3Dhttp://www.xxx.comxmlns:xsi=3Dhttp://www.w3.org/2000/10/XMLSchema=
> -instance xsi:schemaLocation=3D"http://www.xxx.gr
> stat_mtf_repos.xsd">
> <Domain>
> <name>UNEMPLOYMENT</name>=20
> <label>VABOIUS INDICATORS CONCERNING THE
> UNEMPLOYMENT AND WORKING =
> POPULATION IN EU</label>=20
> </Domain>
> </Statistical_Metadata>
>
> I can read the item name 'domain' and i can read the
> item name 'name' =
> and 'label' but not the value 'UNEMPLOYMENT' (always
> NULL, when i call =
> xml_item_value).
> Why this? I use xml_item_value but there is a short
> comment in the =
> documentation: "Extracts the value from a value
> node. These are =
> recognised by their name being NULL"=20
> What means 'name beeing NULL'?
>
> Thank you for your response!!!!=20
> With best regards
>
> Institute of Regional Geography
> Thomas Burghardt
> Leipzig
> Germany