Hi ,

In the following stax job i am trying to read the length of a list
machine_name.
But i get syntax error while trying to do so . The code is highlighted in
yellow.

<stax>
  <defaultcall function="Main"/>
  <function name="Main">
    <sequence>
      <!-- Assign the file name of a STAX xml document you want to parse -->

      <call function="'parseXML'">'c:/MyXml.xml'</call>
      <script>
        [name, machine_name] = STAXResult

        length = len(machine_name)    ========> i am getting syntax error
here ...is this a wrong way to do in this section?

      </script>
      <log message="1">'Name: %s' % (name)</log>
      <log message="1">'Machine_name: %s' % (machine_name)</log>
    </sequence>
  </function>
</stax>

Regards
Sangram
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to