
I'm trying to read this XML file through Navision. In the file below I need to store the 'Line, Location, Component within the XML file.
For example,
How can I use Select Nodes to get the right nodes in this example, using descendants.
xmlNodeListBatchData := xmlRoot.SelectNodes(
'Descendant::'
html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>PCB 01213 BV-00009 TOP </title>
<link href="./PCB 01213 BV-00009 TOP_files/norm.css" media="screen" rel="StyleSheet" type="text/css">
</head>
<body alink="#800000" bgcolor="" link="#000080" text="#000000" vlink="#000080">
<a name="TOP"></a>
<table class="header" width="100%">
<tbody class="header">
<tr class="header">
<td class="header" width="20%">
<a href="http://192.168.128.90/menu.cgi">
Data server<br>
<small>myserver</small>
</a>
<br>
</td>
<td class="headerTitle" width="60%">PCB 01213 BV-00009 TOP </td>
<td class="header" width="20%">
<a href="http://www.mycronic.com/smt">
<img alt="Web link to Mycronic" border="0" class="header" src="./PCB 01213 BV-00009 TOP_files/mycroniclogo.gif">
</a>
</td>
</tr>
</tbody>
</table>
<table class="border" width="100%">
<tbody class="border">
<tr align="Right" class="border" valign="Center">
<td class="footer" nowrap="" width="10%">
<span class="footer">
[ <a href="http://192.168.128.90/menu.cgi">MAIN PAGE</a>
] [ <a href="javascript:history.go(-1); ">BACK</a>
] [ <a href="javascript:history.go(1); ">FORWARD</a>
] [ <a href="javascript:window.print(); " title="Send current page to printer">Print</a>
]
</span>
</td>
<td class="border">
<hr class="border" noshade="" size="2">
</td>
<td class="border" nowrap="" width="10%">Mon Jul 10 08:35 2017</td>
</tr>
</tbody>
</table>
<table class="Menu2" width="100%">
<tbody class="Menu2">
<tr class="Menu2">
<td width="0%"></td>
<td class="Menu2">
<a href="192.168.128.90/viewPCB.cgi;amp;BOMONLY=" onmouseout="document.images['MenuAlt1'].src = 'images/greydot.gif';" onmouseover="document.images['MenuAlt1'].src = 'images/bluedot.gif';">
<img border="0" class="Menu2" name="MenuAlt1" src="./PCB 01213 BV-00009 TOP_files/greydot.gif">Display Bill Of Materials only
</a>
<br>
<a href="192.168.128.90/viewPCB.cgi;amp;IMAGESZ=900&DETAILED=" onmouseout="document.images['MenuAlt2'].src = 'images/greydot.gif';" onmouseover="document.images['MenuAlt2'].src = 'images/bluedot.gif';">
<img border="0" class="Menu2" name="MenuAlt2" src="./PCB 01213 BV-00009 TOP_files/greydot.gif">Show large image
</a>
<br>
</td>
<td width="0%"></td>
</tr>
</tbody>
</table>
<table class="DataTable2">
<tbody class="DataTable2">
<tr class="DataTable2">
<th class="DataTable2">Name</th>
<td class="DataTable2">01213 BV-00009 TOP</td>
<td class="DataTableImage" rowspan="10">
<img border="0" height="263" src="./PCB 01213 BV-00009 TOP_files/viewImage.cgi" width="310">
</td>
</tr>
<tr class="DataTable2">
<th class="DataTable2">Comment</th>
<td class="DataTable2"></td>
</tr>
<tr class="DataTable2">
<th class="DataTable2">Mount lines</th>
<td class="DataTable2">287</td>
</tr>
<tr class="DataTable2">
<th class="DataTable2">Mount Tool Test</th>
<td class="DataTable2">100.335mm/-5.669mm</td>
</tr>
<tr class="DataTable2">
<th class="DataTable2">Glue Tool Test</th>
<td class="DataTable2">0.000mm/0.000mm</td>
</tr>
<tr class="DataTable2">
<th class="DataTable2">Barcode Position</th>
<td class="DataTable2">0.000mm/0.000mm</td>
</tr>
<tr class="DataTable2">
<th class="DataTable2">Bad Mark Position</th>
<td class="DataTable2">83.050mm/67.713mm</td>
</tr>
<tr class="DataTable2">
<th class="DataTable2">Level Test Tools</th>
<td class="DataTable2">A12 </td>
</tr>
<tr class="DataTable2">
<th class="DataTable2">Highest undefined obstacle</th>
<td class="DataTable2">0.000mm</td>
</tr>
<tr class="DataTable2">
<th class="DataTable2">Accepted fiducial mark distortion error (%)</th>
<td class="DataTable2">0.125</td>
</tr>
<tr class="DataTable2">
<th class="DataTable2">Accepted board angle deformation</th>
<td class="DataTable2">---</td>
</tr>
<tr class="DataTable2">
<th class="DataTable2">Fiducial marks</th>
<td class="DataTable2">
<table class="DataTable2">
<tbody class="DataTable2">
<tr class="DataTable">
<td class="DataTable"></td>
<th class="DataTable">X</th>
<th class="DataTable">Y</th>
<th class="DataTable">Type</th>
</tr>
<tr class="DataTable">
<th class="DataTable">1</th>
<td class="DataTableNumeric">0.000mm</td>
<td class="DataTableNumeric">0.000mm</td>
<td class="DataTable">CIRC-1.5</td>
</tr>
<tr class="DataTable">
<th class="DataTable">2</th>
<td class="DataTableNumeric">95.200mm</td>
<td class="DataTableNumeric">75.900mm</td>
<td class="DataTable">CIRC-1.5</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="DataTable2"></tr>
</tbody>
</table>
<hr>
<table>
<thead class="DataTable">
<tr class="DataTable">
<th class="DataTable">Line</th>
<th class="DataTable">Location</th>
<th class="DataTable">Component</th>
<th class="DataTable">Comment</th>
<th class="DataTable">Stock Location</th>
<th class="DataTable">X</th>
<th class="DataTable">Y</th>
<th class="DataTable">Z</th>
<th class="DataTable">Angle</th>
<th class="DataTable">Group</th>
<th class="DataTable">Notes</th>
</tr>
</thead>
<tbody>
<tr class="DataTable">
<th class="DataTable">1</th>
<td class="DataTable">C4</td>
<td class="DataTable">
<a href="192.168.128.90/viewComponent.cgi">PN-0000170</a>
</td>
<td class="DataTable">1NF 0402 50V C0G 5%</td>
<td class="DataTable"></td>
<td class="DataTableNumeric">81.318mm</td>
<td class="DataTableNumeric">47.984mm</td>
<td class="DataTableNumeric">0.000mm</td>
<td class="DataTableNumeric">-90°</td>
<td class="DataTable">0</td>
</tr>
<tr class="DataTable">
<th class="DataTable">2</th>
<td class="DataTable">C9</td>
<td class="DataTable">
<a href="192.168.128.90/viewComponent.cgi">PN-1007815</a>
</td>
<td class="DataTable">10PF 0402 50V C0G 1%</td>
<td class="DataTable"></td>
<td class="DataTableNumeric">86.116mm</td>
<td class="DataTableNumeric">47.489mm</td>
<td class="DataTableNumeric">0.000mm</td>
<td class="DataTableNumeric">180°</td>
<td class="DataTable">0</td>
</tr>
*This post is locked for comments
I have the same question (0)