SOA for the Business Developer: Concepts, BPEL, and SCA (Business Developers series)
The comment() node test retains comment nodes, which are children and siblings of element nodes or are children of the root node. Consider the following XML document.
<?xml version="1.0" encoding="ISO-8859-1"?> <!- here is an Insured -> <Insured><CarPolicy><!- Cancelled -></CarPolicy></Insured>
The next expression resolves to the contents of the second comment, including the space that precedes and follows the word Cancelled.
/descendant::comment()[2]
Категории