title: XML input for Powershell Function
body: <p>I have an XML which has multiple nodes and sub-nodes from which am consuming data as input for multiple functions from the main function.</p>
  
  <p>I have a basic question on optimized code here.</p>
  
  <ol>
  <li>Is it good to pass the XML object as an input to multiple function which consumes some data from the XML?</li>
  <li>Is it good to pass the XML path to the function and instantiate XML object inside each function?</li>
  <li>Is there a way to pass just the node which is required for a particular function? ( In-case i have 10 nodes and 10 functions - where each function requires just one particular node for consuming data)</li>
  </ol>
  
  <p>Thanks</p>