Hello all,
I am working on Pentaho Data Integration (Kettle) and trying to perform some ETL operation on XML files.
Following is the XML file:
<host id="100">
<ip>10.10.16.1</ip>
<hostname>Name not in DNS</hostname>
<netbiosname/>
<hscore>346</hscore>
<howner>Network</howner>
<assetvalue>3</assetvalue>
<os>Cisco</os>
<nbtshares/>
<fndv id="1191" port="22" proto="tcp"/>
<fndv id="6266" port="22" proto="tcp"/>
<fndv id="7290" port="22" proto="tcp"/>
<fndv id="45208" port="22" proto="tcp"/>
<fndv id="45211" port="22" proto="tcp"/>
<fndv id="45212" port="22" proto="tcp"/>
<fndv id="45213" port="22" proto="tcp"/>
<fndv id="71471" port="22" proto="tcp"/>
<fndv id="71473" port="22" proto="tcp"/>
<fndv id="78682" port="22" proto="tcp"/>
<fndv id="78685" port="22" proto="tcp"/>
<fndv id="83288" port="22" proto="tcp"/>
<fndapp id="1619" port="22" proto="tcp"/>
<fndapp id="7135" port="22" proto="tcp"/>
<fndapp id="5092" port="123" proto="udp"/>
<fndapp id="16157" port="123" proto="udp"/>
<fndapp id="297" port="161" proto="udp"/>
<fndapp id="1408" port="500" proto="udp"/>
<fndapp id="8037" port="0" proto="ip"/>
</host>
I kept loopXpath as: /host and able to get fields. After previewing rows, only ip , hscore, howner, assetvalue, os fields data is shown. Is it possible to read row value such as "<fndv id="78682" port="22" proto="tcp"/>" using pentaho ?
I need to extract data from XML file and write into a table such as IP address will be same (10.10.16.1) and fndv values along with them.
IP fndv id port
10.10.16.1 1191 22
10.10.16.1 6266 22
10.10.16.1 7290 22
10.10.16.1 45208 22
Looking forward to suggestion, Thanks in advance.
I am working on Pentaho Data Integration (Kettle) and trying to perform some ETL operation on XML files.
Following is the XML file:
<host id="100">
<ip>10.10.16.1</ip>
<hostname>Name not in DNS</hostname>
<netbiosname/>
<hscore>346</hscore>
<howner>Network</howner>
<assetvalue>3</assetvalue>
<os>Cisco</os>
<nbtshares/>
<fndv id="1191" port="22" proto="tcp"/>
<fndv id="6266" port="22" proto="tcp"/>
<fndv id="7290" port="22" proto="tcp"/>
<fndv id="45208" port="22" proto="tcp"/>
<fndv id="45211" port="22" proto="tcp"/>
<fndv id="45212" port="22" proto="tcp"/>
<fndv id="45213" port="22" proto="tcp"/>
<fndv id="71471" port="22" proto="tcp"/>
<fndv id="71473" port="22" proto="tcp"/>
<fndv id="78682" port="22" proto="tcp"/>
<fndv id="78685" port="22" proto="tcp"/>
<fndv id="83288" port="22" proto="tcp"/>
<fndapp id="1619" port="22" proto="tcp"/>
<fndapp id="7135" port="22" proto="tcp"/>
<fndapp id="5092" port="123" proto="udp"/>
<fndapp id="16157" port="123" proto="udp"/>
<fndapp id="297" port="161" proto="udp"/>
<fndapp id="1408" port="500" proto="udp"/>
<fndapp id="8037" port="0" proto="ip"/>
</host>
I kept loopXpath as: /host and able to get fields. After previewing rows, only ip , hscore, howner, assetvalue, os fields data is shown. Is it possible to read row value such as "<fndv id="78682" port="22" proto="tcp"/>" using pentaho ?
I need to extract data from XML file and write into a table such as IP address will be same (10.10.16.1) and fndv values along with them.
IP fndv id port
10.10.16.1 1191 22
10.10.16.1 6266 22
10.10.16.1 7290 22
10.10.16.1 45208 22
Looking forward to suggestion, Thanks in advance.