13 February, 2014

XML-PI property variables.

<Property name="Priority" alias = "Priority" distance = "2" length = "-1" type = "String"/>

Trying to figure out how exactly the distance and length values influence the XML output and format.


-update-

The <property> tag matches a row.
The "distance" parameter dictates where the matching of data (inside the row) should begin.
The "length" parameter dictates where the matching of data (inside the row) should end.
The value of "distance" can be any positive integer.
The value of "length" can range from -1 to any other positive integer (-1 covers entire row to the end).
Delimiter for counting numbers is the space key.

For example row:
              1           2          3          4         5

Priority    32769  (priority 32768 sys-id-ext 1)

and
<Property name="Priority" alias = "Priority" distance = "3" length = "-1" type = "String"/>

results in a match of
<Priority>32768 sys-id-ext 1</Priority>

No comments:

Post a Comment