Chapter 6 Advanced Expressions: Parsing HTTP, TCP, and UDP Data 139
text.XPATH_WITH_
MARKUP(xpathex) Operate on an XML file and return a string
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
XPath Prefix Description