web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Reading an XML File

(0) ShareShare
ReportReport
Posted on by

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,

4336.153.PNG

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[&#39;MenuAlt1&#39;].src = &#39;images/greydot.gif&#39;;" onmouseover="document.images[&#39;MenuAlt1&#39;].src = &#39;images/bluedot.gif&#39;;">
<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&amp;DETAILED=" onmouseout="document.images[&#39;MenuAlt2&#39;].src = &#39;images/greydot.gif&#39;;" onmouseover="document.images[&#39;MenuAlt2&#39;].src = &#39;images/bluedot.gif&#39;;">
<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&nbsp;</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)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans