hi all,
first of i'd like to tell you i'm a newbie and that my mother tongue is not english so feel free to correct me.
i'd like to use timport to parse to xml file and load the data into the table "options" of a datbase but it's not working.
here's the data :
<?xml version="1.0" encoding="ISO-8859-1"?>
<BaseWebinator Subject="DBNAME">
<Profile Subject="Profile1">
<name Option="x">/whatsnew.jsp</Name>
<Name Option="x">/whatsnew1.jsp</Name>
<Name Option="Domain"></Name>
<Name Option="Network"></Name>
<Name Option="Proxy"></Name>
<Name Option="dns">sys</Name>
<Name Option="a"></Name>
<Name Option="j"></Name>
<Name Option="C"></Name>
<Name Option="b">CHECKED</Name>
<Name Option="N"></Name>
<name Option="f">htm</Name>
<Name Option="f">txt</Name>
<Name Option="f">jsp</Name>
<Name Option="f">doc</Name>
<name Option="Depthlimit"></Name>
<Name Option="M">3.0</Name>
</Profile>
<Profile Subject="Profile2">
<name Option="Network"></Name>
<Name Option="Proxy"></Name>
<Name Option="dns">sys</Name>
<Name Option="a"></Name>
<Name Option="j"></Name>
<Name Option="C"></Name>
<Name Option="o"></Name>
<Name Option="y"></Name>
<Name Option="r"></Name>
<Name Option="b">CHECKED</Name>
<Name Option="N">CHECKED</Name>
...
</Profile>
<Profile Subject="Profile3">
...
</Profile>
<Profile Subject="Profile4">
...
</Profile>
...
</BaseWebinator>
here's the schema file :
database /data/DBNAME
table options
trimspace
xml nohtml
multiple
field Profile varchar BASEWEBINATOR/PROFILE@Subject
field Name varchar BASEWEBINATOR/PROFILE/NAME@Option
field String varchar BASEWEBINATOR/PROFILE/NAME
when i use this code :
<LOCAL xmlProfilBDSchema xmlProfilBDFile>
<read $PATH_PROFILBDSCHEMA>
<$xmlProfilBDSchema = $ret>
<sum "%s" $path "\" $Db ".xml">
<$fichierXML = $ret>
<read $fichierXML>
<$xmlProfilBDFile = $ret>
<timport $xmlProfilBDSchema $xmlProfilBDFile>
</timport>
nothing happens. The table options is not loaded from the xml.
any help would be greatly appreciated.
thanks in advance
first of i'd like to tell you i'm a newbie and that my mother tongue is not english so feel free to correct me.
i'd like to use timport to parse to xml file and load the data into the table "options" of a datbase but it's not working.
here's the data :
<?xml version="1.0" encoding="ISO-8859-1"?>
<BaseWebinator Subject="DBNAME">
<Profile Subject="Profile1">
<name Option="x">/whatsnew.jsp</Name>
<Name Option="x">/whatsnew1.jsp</Name>
<Name Option="Domain"></Name>
<Name Option="Network"></Name>
<Name Option="Proxy"></Name>
<Name Option="dns">sys</Name>
<Name Option="a"></Name>
<Name Option="j"></Name>
<Name Option="C"></Name>
<Name Option="b">CHECKED</Name>
<Name Option="N"></Name>
<name Option="f">htm</Name>
<Name Option="f">txt</Name>
<Name Option="f">jsp</Name>
<Name Option="f">doc</Name>
<name Option="Depthlimit"></Name>
<Name Option="M">3.0</Name>
</Profile>
<Profile Subject="Profile2">
<name Option="Network"></Name>
<Name Option="Proxy"></Name>
<Name Option="dns">sys</Name>
<Name Option="a"></Name>
<Name Option="j"></Name>
<Name Option="C"></Name>
<Name Option="o"></Name>
<Name Option="y"></Name>
<Name Option="r"></Name>
<Name Option="b">CHECKED</Name>
<Name Option="N">CHECKED</Name>
...
</Profile>
<Profile Subject="Profile3">
...
</Profile>
<Profile Subject="Profile4">
...
</Profile>
...
</BaseWebinator>
here's the schema file :
database /data/DBNAME
table options
trimspace
xml nohtml
multiple
field Profile varchar BASEWEBINATOR/PROFILE@Subject
field Name varchar BASEWEBINATOR/PROFILE/NAME@Option
field String varchar BASEWEBINATOR/PROFILE/NAME
when i use this code :
<LOCAL xmlProfilBDSchema xmlProfilBDFile>
<read $PATH_PROFILBDSCHEMA>
<$xmlProfilBDSchema = $ret>
<sum "%s" $path "\" $Db ".xml">
<$fichierXML = $ret>
<read $fichierXML>
<$xmlProfilBDFile = $ret>
<timport $xmlProfilBDSchema $xmlProfilBDFile>
</timport>
nothing happens. The table options is not loaded from the xml.
any help would be greatly appreciated.
thanks in advance