[Xitami-Dev] using sfl xml (Leipzig, germany)

Thomas Burghardt xitami-dev@lists.xitami.org
Tue, 9 Sep 2003 11:13:59 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0050_01C376C3.77EBACA0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

=20
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
------=_NextPart_000_0050_01C376C3.77EBACA0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1226" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>&nbsp;
<DIV><FONT face=3DArial size=3D2>Dear programmers,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>we would like to use the sfl library to =
read an xml=20
file.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The xml files looks like this short=20
example:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#990000><SPAN =
class=3Dt>&lt;Statistical_Metadata</SPAN><SPAN=20
class=3Dt> dateTimeSent</SPAN></FONT><SPAN class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><B>2003-07-01T12:14:25</B><SPAN =
class=3Dm><FONT=20
color=3D#0000ff>"</FONT></SPAN><SPAN class=3Dt><FONT color=3D#990000>=20
lastUpdated</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><B>2002-04-18</B><SPAN class=3Dm><FONT =

color=3D#0000ff>"</FONT></SPAN><SPAN class=3Dns><FONT color=3D#ff0000>=20
xmlns</FONT></SPAN><SPAN class=3Dm><FONT =
color=3D#0000ff>=3D</FONT></SPAN><B=20
class=3Dns><FONT color=3D#ff0000><A=20
href=3D"http://www.xxx.comgr/statlas/statistical/metadata/schema">http://=
www.xxx.com</A></FONT></B><SPAN=20
class=3Dns><FONT color=3D#ff0000>xmlns:xsi</FONT></SPAN><SPAN =
class=3Dm><FONT=20
color=3D#0000ff>=3D</FONT></SPAN><B class=3Dns><FONT color=3D#ff0000><A=20
href=3D"http://www.w3.org/2000/10/XMLSchema-instance">http://www.w3.org/2=
000/10/XMLSchema-instance</A></FONT></B><SPAN=20
class=3Dm><FONT color=3D#0000ff></FONT></SPAN><SPAN class=3Dt><FONT =
color=3D#990000>=20
xsi:schemaLocation</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>=3D"</FONT></SPAN><A=20
href=3D"http://www.xxx.gr/statlas/statistical/metadata/schema"><STRONG>ht=
tp://www.xxx.gr</STRONG></A><FONT=20
color=3D#0000ff>&nbsp;</FONT><STRONG> stat_mtf_repos.xsd</STRONG><FONT=20
color=3D#0000ff><SPAN class=3Dm>"</SPAN><SPAN =
class=3Dm>&gt;</SPAN></FONT>
<DIV>
<DIV class=3De>
<DIV class=3Dc style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><SPAN =
class=3Dm><FONT=20
color=3D#0000ff><STRONG><FONT face=3D"Courier New" =
color=3D#ff0000>&nbsp;=20
</FONT></STRONG>&lt;</FONT></SPAN><SPAN class=3Dt><FONT=20
color=3D#990000>Domain</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>&gt;</FONT></SPAN></DIV>
<DIV style=3D"DISPLAY: block">
<DIV class=3De>
<DIV style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><SPAN =
class=3Db><STRONG><FONT=20
face=3D"Courier New" color=3D#ff0000>&nbsp;</FONT></STRONG></SPAN> <SPAN =

class=3Dm><FONT color=3D#0000ff>&lt;</FONT></SPAN><FONT =
color=3D#990000><SPAN=20
class=3Dt>name</SPAN></FONT><FONT color=3D#0000ff><SPAN=20
class=3Dm>&gt;</SPAN></FONT><SPAN=20
class=3Dtx><STRONG>UNEMPLOYMENT</STRONG></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>&lt;/</FONT></SPAN><SPAN class=3Dt><FONT=20
color=3D#990000>name</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>&gt;</FONT></SPAN> </DIV></DIV>
<DIV class=3De>
<DIV style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><SPAN =
class=3Db><STRONG><FONT=20
face=3D"Courier New" color=3D#ff0000>&nbsp;</FONT></STRONG></SPAN> <SPAN =

class=3Dm><FONT color=3D#0000ff>&lt;</FONT></SPAN><SPAN class=3Dt><FONT=20
color=3D#990000>label</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>&gt;</FONT></SPAN><SPAN class=3Dtx><STRONG>VABOIUS =
INDICATORS=20
CONCERNING THE UNEMPLOYMENT AND WORKING POPULATION IN =
EU</STRONG></SPAN><SPAN=20
class=3Dm><FONT color=3D#0000ff>&lt;/</FONT></SPAN><SPAN class=3Dt><FONT =

color=3D#990000>label</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>&gt;</FONT></SPAN> </DIV></DIV>
<DIV class=3De><SPAN class=3Dm><FONT =
color=3D#0000ff>&lt;/</FONT></SPAN><SPAN=20
class=3Dt><FONT color=3D#990000>Domain</FONT></SPAN><SPAN =
class=3Dm><FONT=20
color=3D#0000ff>&gt;</FONT></SPAN></DIV></DIV></DIV>
<DIV><SPAN class=3Dm><FONT color=3D#0000ff>&lt;/</FONT></SPAN><SPAN =
class=3Dt><FONT=20
color=3D#990000>Statistical_Metadata</FONT></SPAN><SPAN class=3Dm><FONT=20
color=3D#0000ff>&gt;</FONT></SPAN></DIV></DIV></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>I can read the item&nbsp;name 'domain' and i can&nbsp;read the item =
name=20
'name' and 'label' but not the value 'UNEMPLOYMENT' (always NULL, when i =
call=20
xml_item_value).</DIV>
<DIV>Why this? I use xml_item_value but there is a short comment in the=20
documentation: "Extracts the value from a value node. These are =
recognised by=20
their name being NULL" </DIV>
<DIV>What means 'name beeing NULL'?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you for your response!!!!&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>With best regards</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Institute of Regional =
Geography</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thomas Burghardt</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Leipzig</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>Germany</FONT></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_0050_01C376C3.77EBACA0--