Hi,
I have an XML file formatted like so:
I then made a XMLMap file like so:
This imports first column (position attribute) cool, but it wont pull in the second colunm (ID). I've been stuffing around with this for days, and I cant get the XPATH value to retrieve anything.
Any thoughts/tips ?
I have an XML file formatted like so:
Code:
<viewentries>
<viewentry position="1">
<entrydata name="ID"><text>VWA04908</text></entrydata>
<entrydata name="DESC"><text>From service request</text></entrydata>
<entrydata name="NAME"><text>Given Surname</text></entrydata>
</viewentry>
</viewentries>
I then made a XMLMap file like so:
Code:
<SXLEMAP version="1.0"> <!-- version="1.1" -->
<TABLE name="Assignments">
<TABLE_XPATH>/viewentries/viewentry</TABLE_XPATH>
<COLUMN name="ID">
<XPATH>/viewentries/viewentry@position</XPATH>
<TYPE>character</TYPE>
<DATATYPE>string</DATATYPE>
<LENGTH>100</LENGTH>
</COLUMN>
<COLUMN name="AssignmentID">
<XPATH>>/viewentries/viewentry/entrydata[@name="ID"] </XPATH>
<TYPE>character</TYPE>
<DATATYPE>string</DATATYPE>
<LENGTH>100</LENGTH>
</COLUMN>
</TABLE>
</SXLEMAP>
This imports first column (position attribute) cool, but it wont pull in the second colunm (ID). I've been stuffing around with this for days, and I cant get the XPATH value to retrieve anything.
Any thoughts/tips ?