Chapter 6

Advanced Expressions: Parsing HTTP, TCP, and UDP Data

139

 

 

 

 

 

 

XPath Prefix

 

Description

 

 

 

 

 

 

 

text.XPATH_WITH_

 

Operate on an XML file and return a string

 

 

MARKUP(xpathex)

 

that contains the entire portion of the

 

 

 

 

document for the result node, including

 

 

 

 

markup such as including the enclosing

 

 

 

 

element tags.

 

 

 

 

For example, the following expression

 

 

 

 

operates on an XML file and selects all the

 

 

 

 

nodes enclosed by “/Book/creator" in the first

 

 

 

1000 bytes of the body.

 

 

 

 

HTTP.REQ.BODY(1000).XPATH_WITH_

 

 

 

 

MARKUP(xp%/Book/creator%)

 

 

 

 

The portion of the JSON body that is selected

 

 

 

by the expression is marked for further

 

 

 

 

processing.

 

 

 

 

Parameters:

 

 

 

 

xpathex - XPath expression

 

 

 

 

 

 

Page 153
Image 153
Citrix Systems 9.2 manual Text.XPATHWITH, Bytes of the body, MARKUPxp%/Book/creator%