XML Script logo
Function region
Name

region

Returns

string

Parameter count

3

Parameter 1

first, a pointer(s)

Parameter 2

last, a pointer(s)

Parameter 3

inclusive, a string

Description

This function takes two elements, and returns them as text, including all intervening text and elements. If 'inclusive' is false, the first and last elements are excluded from the output. For example
<j><foo value="1" />XML<foo value="2" />Script<foo value="3" /><foo value="4" /></j>
# region(j\foo[1], j\foo[3], 1) # returns <foo value="1" />XML<foo value="2" />Script<foo value="3" />
# region(j\foo[1], j\foo[3], 0) # returns XML<foo value="2" />Script

Examples of use

                                
                        

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited