[Xitami-Dev] using sfl xml library support makes problem

Thomas Burghardt xitami-dev@lists.xitami.org
Thu, 11 Sep 2003 09:07:19 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0086_01C37844.1A4BCB70
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Dear programmers,
I try it again, because the question is really important for us. We =
would like to use the SFL
library, but the XML support of the library did not really work. A user =
of the xitami mailing list told me, i should take the function =
xml_get_attr_ic, but this did not work again.=20
Please tell me if i can read the value 'UNEMPLOYMENT' in my xml file =
(see the following section) with the sfl xml functions or not (and how)?
Thank you very much. =20

The xml files looks like this short example:
<Statistical_Metadata>=20
  <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_0086_01C37844.1A4BCB70
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>
<DIV>
<DIV><FONT face=3DArial size=3D2>Dear programmers,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I try it again, because the question is =
really=20
important for us. We would like to use the SFL</FONT></DIV>
<DIV>library, but the XML support of the library did not really work. =
<FONT=20
face=3DArial size=3D2>A user of the xitami mailing list told me, i =
should take the=20
function xml_get_attr_ic, but this&nbsp;did not work =
again.&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Please tell me if i can read the value=20
'UNEMPLOYMENT' in my xml file (see the following section) with the sfl =
xml=20
functions or not (and how)?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thank you&nbsp;very =
much.&nbsp;&nbsp;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The xml files looks like this short=20
example:</FONT></DIV>
<DIV><FONT color=3D#990000><SPAN=20
class=3Dt>&lt;Statistical_Metadata</SPAN></FONT><FONT =
color=3D#0000ff><SPAN=20
class=3Dm>&gt;</SPAN></FONT> </DIV>
<DIV>
<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=20
size=3D2>Germany</FONT></DIV></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_0086_01C37844.1A4BCB70--