title: Pentaho PDI - XPath syntax for XML Join step
body: <p>I am trying to join xml code with Pentaho PDI in a transformation with a "Add XML" step, which add some fields with a "Root XML Element" set as "Node" (like below) and a "XML Join" step.</p>
  
  <p>I want to insert some fields with the same data into each and every "Node".</p>
  
  <pre><code>&lt;Rootnode&gt;
   &lt;Node&gt;
   &lt;Node&gt;
   &lt;Node&gt;
  &lt;/Rootnode&gt;
  </code></pre>
  
  <p>The problem is that, no matter what XPath expression I try, the fields I want to insert are only inserted in the first node. Expressions like "RootNode/Node" or "//Node" are not working.</p>
  
  <p>This is the result I get:</p>
  
  <pre><code>&lt;RootNode&gt;
     &lt;Node&gt;
      &lt;inserted field&gt;
    &lt;Node&gt;
    &lt;Node&gt;
  &lt;/RootNode&gt;
  </code></pre>
  
  <p>This is what I want to get:</p>
  
  <pre><code>&lt;RootNode&gt;
    &lt;Node&gt;
      &lt;inserted field&gt;
    &lt;Node&gt;
      &lt;inserted field&gt;
    &lt;Node&gt;
      &lt;inserted field&gt;
  &lt;/RootNode&gt;
  </code></pre>
  
  <p>Questions: can the XML-join step only join code into one explicitly specified node or is there a XPath-expression I can use in the XML-join step´s XPath Statement input to insert the code into all nodes of my choice?</p>
  
  <p>(I dont think a complex join with a comparion field is appropriate because I dont have anything to compare with.)</p>