Use this function to set the current pointer to the next node or element in the specified list. This function is similar to the XMLFirst function.
Parameter |
Description |
%XMLTree |
A list type DAL variable. This variable can be either an XML tree or a list of extracted elements. |
The system sets the current pointer to the next node or element in the list you specified list and returns one (1) for success or zero (0) for failure.
This example returns text from the last element in the list.
aStr="Text not found!";
%xXMLTree=LoadXMLList("test.xml");
%XMLTree=XMLFind(%xXMLTree,"Forms","Form[text()]");
#rc=XMLFirst(%XMLTree);
loop:
if #rc=0
goto endloop:
end
aStr=XMLGetCurName(%XMLTree);
#rc=XMLNext(%XMLTree);
goto loop:
endloop:
#rc=DestroyList(%xXMLTree);
return(aStr);
© Copyright 2014, Oracle and/or its affiliates. All rights reserved. Legal notices.