Monday, September 10, 2012

Getting started with Expresso parser 



Check out our free developer version at http://www.sxml.com.au:8080/Expresso/login.jsp



Today I will show you how to parse an XML file with Expresso.  We will be dealing with the visual aspect of parsing a file.


Register for a free developer account

  1. To register simply enter a username, password and a company. If you are not currently working add your username again in this field. 
  2. Choose free developer version and Click 'register'. 


Login to the site


  1. Enter your username, password and company and click 'login'. You will be brought to the dashboard







The dashboard
The main area is called the dashboard. this contains a list of all XML connections and web services which you have created. Each can be edited.







Create a new XML connection

  1. In dashboard, click 'add new connection' and you are brought to a new page.
  2. Enter a name for the connection, upload or specify an XML file URI and choose settings and click save.
  3. The new connection will now be shown on the dashboard.







Create a new parsing rule 

  1. Click on the rules section of the connection listing to see a particular connection's rules.
  2. Click 'add new' to add a new parsing rule. A popup box appears. Fill in details.



  1. To search for child elements click 'add child'. A hierarchy of search rules can be created.
  2. You can return various aspects of an element including tagname, tag value, attribute name and attribute value.


  1. You can use regular expressions and mathematical operators in the search.
  2. You can search for child elements or descendants.
  3. Click save to save the rule. 
  4. Once you save a rule it appears on the right hand side of the screen. When you select a new connection only the selected connection's rules are shown. 











See results
1.  Click on a rule's run method to run the rule against the XML file. The results are shown on screen.





Check out our free developer version at http://www.sxml.com.au:8080/Expresso/login.jsp




No comments:

Post a Comment