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
- To register simply enter a username, password and a company. If you are not currently working add your username again in this field.
- Choose free developer version and Click 'register'.
Login to the site
- 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
- In dashboard, click 'add new connection' and you are brought to a new page.
- Enter a name for the connection, upload or specify an XML file URI and choose settings and click save.
- The new connection will now be shown on the dashboard.
Create a new parsing rule
- Click on the rules section of the connection listing to see a particular connection's rules.
- Click 'add new' to add a new parsing rule. A popup box appears. Fill in details.
- To search for child elements click 'add child'. A hierarchy of search rules can be created.
- You can return various aspects of an element including tagname, tag value, attribute name and attribute value.
- You can use regular expressions and mathematical operators in the search.
- You can search for child elements or descendants.
- Click save to save the rule.
- 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