HP e-CommerceXML Accelerator sa7150 User Manual
Page 67

C H A P T E R 4
Scenario 1—Basic XML Operation
57
10. Create XML patterns for Server 3:
HP SA7150> create pattern server3
URI Expression: */order.asp
XML Expression: //Amount[Value > 5000 and
Value < 10000]
Enter another pattern? [n]: y
URI Expression: */order.asp
XML Expression: //
Address[zipcode < 9000]
Enter another pattern? [n]: y
URI Expression: */order.asp
XML Expression: //Order[@type = "debit
card"]
Enter another pattern? [n]:
The table below contains examples of XML patterns programmed in
the SA7150 for each of the three servers in Scenario 1.
Server
URI Expression
XML Expression
1
*/order.asp
//From[id = “Acme”]
*/order.asp
//Amount[Value >= 10000]
*/order.asp
default
2
*/order.asp
//From[id = “Widgets.com”]
*/order.asp
//Amount[Value < 10000]
*/order.asp
//Order[@type = “debit card”]
3
*/order.asp
//Amount[Value > 5000 and Value < 10000]
*/order.asp
//Address[zipcode < 9000]
*/order.asp
//Order[@type= “debit card”]
XML Patterns for Scenario 1