Hp e-CommerceXML Accelerator sa7150 Uživatelský manuál Strana 67

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 212
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 66
C H A P T E R 4 Scenario 1Basic 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
Zobrazit stránku 66
1 2 ... 62 63 64 65 66 67 68 69 70 71 72 ... 211 212

Komentáře k této Příručce

Žádné komentáře