Note that there are some explanatory texts on larger screens.

plurals
  1. PONested XPath iteration possible?
    primarykey
    data
    text
    <p>I have a XML file template like this that comes from some IC chips, I want to be able to store each Pins Test type datas as an array so later I can draw it on a cartesian graph.</p> <p>The data structure is like this: <code>&lt;NUMBER&gt;&lt;/NUMBER&gt;</code> is name of the IC's particular pin <code>&lt;Curve Count=""&gt;</code> is number of tests done to a pin <code>&lt;Type&gt;&lt;/Type&gt;</code> is type of test</p> <p>and there are some voltage values and current values that I have to put in an array so I can use it later.</p> <p>Anyway! My question is how can I get these values? I do not ask for a direct answer (but it is appriciated) but some guide that make me to find the thread is really appriciated.</p> <p>EDIT: If somone kindly give me a code to have 3 voltage and 3 current values from A1 I can easily get the idea and continue myself.</p> <p>This XML looks likes this:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Document&gt; &lt;Device&gt;NEC555&lt;/Device&gt; &lt;Pins Count="3"&gt; &lt;Pin&gt; &lt;Number&gt;A1&lt;/Number&gt; &lt;Curves Count ="3"&gt; &lt;Curve&gt; &lt;Type&gt;PreStress&lt;/Type&gt; &lt;VIPairs Count="3"&gt; &lt;VIPair&gt; &lt;Voltage&gt;-2&lt;/Voltage&gt; &lt;Current&gt;-0.003&lt;/Current&gt; &lt;/VIPair&gt; &lt;VIPair&gt; &lt;Voltage&gt;-1&lt;/Voltage&gt; &lt;Current&gt;-0.002&lt;/Current&gt; &lt;/VIPair&gt; &lt;VIPair&gt; &lt;Voltage&gt;-0&lt;/Voltage&gt; &lt;Current&gt;-0.001&lt;/Current&gt; &lt;/VIPair&gt; &lt;/VIPairs&gt; &lt;/Curve&gt; &lt;Curve&gt; &lt;Type&gt;PreFail&lt;/Type&gt; &lt;VIPairs Count="3"&gt; &lt;VIPair&gt; &lt;Voltage&gt;-2&lt;/Voltage&gt; &lt;Current&gt;-0.003&lt;/Current&gt; &lt;/VIPair&gt; &lt;VIPair&gt; &lt;Voltage&gt;-1&lt;/Voltage&gt; &lt;Current&gt;-0.002&lt;/Current&gt; &lt;/VIPair&gt; &lt;VIPair&gt; &lt;Voltage&gt;-0&lt;/Voltage&gt; &lt;Current&gt;-0.001&lt;/Current&gt; &lt;/VIPair&gt; &lt;/VIPairs&gt; &lt;/Curve&gt; &lt;Curve&gt; &lt;Type&gt;PostFail&lt;/Type&gt; &lt;VIPairs Count="0"&gt; &lt;/VIPairs&gt; &lt;/Curve&gt; &lt;/Curves&gt; &lt;/Pin&gt; &lt;Pin&gt; &lt;Number&gt;B1&lt;/Number&gt; &lt;Curves Count ="3"&gt; &lt;Curve&gt; &lt;Type&gt;PreStress&lt;/Type&gt; &lt;VIPairs Count="3"&gt; &lt;VIPair&gt; &lt;Voltage&gt;-3&lt;/Voltage&gt; &lt;Current&gt;-0.005&lt;/Current&gt; &lt;/VIPair&gt; &lt;VIPair&gt; &lt;Voltage&gt;-1&lt;/Voltage&gt; &lt;Current&gt;-0.002&lt;/Current&gt; &lt;/VIPair&gt; &lt;VIPair&gt; &lt;Voltage&gt;-0&lt;/Voltage&gt; &lt;Current&gt;-0.001&lt;/Current&gt; &lt;/VIPair&gt; &lt;/VIPairs&gt; &lt;/Curve&gt; &lt;Curve&gt; &lt;Type&gt;PreFail&lt;/Type&gt; &lt;VIPairs Count="3"&gt; &lt;VIPair&gt; &lt;Voltage&gt;-3&lt;/Voltage&gt; &lt;Current&gt;-0.003&lt;/Current&gt; &lt;/VIPair&gt; &lt;VIPair&gt; &lt;Voltage&gt;-1&lt;/Voltage&gt; &lt;Current&gt;-0.002&lt;/Current&gt; &lt;/VIPair&gt; &lt;VIPair&gt; &lt;Voltage&gt;-0&lt;/Voltage&gt; &lt;Current&gt;-0.001&lt;/Current&gt; &lt;/VIPair&gt; &lt;/VIPairs&gt; &lt;/Curve&gt; &lt;Curve&gt; &lt;Type&gt;PostFail&lt;/Type&gt; &lt;VIPairs Count="0"&gt; &lt;/VIPairs&gt; &lt;/Curve&gt; &lt;/Curves&gt; &lt;/Pin&gt; &lt;/Pins&gt; &lt;/Document&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload