CALL "C$XML" USING CXML-GET-CHILD-BY-ATTR-VALUE, handle, regex, flags
|CXML-GET-CHILD-BY-ATTR-VALUE||Op-code 19. Numeric data item that specifies the operation to perform. Each operation is defined in acucobol.def, which is included with your system.|
|regex||A regular expression|
|handle||An element handle|
|A collection of flags to apply to the regular expression. The valid flags are listed in acucobol.def and described under C$REGEXP op-code 2. They can be added together to get more than one flag.|
The handle of the returned child, or “0” if no such child exists.
This operation retrieves the child element that has an attribute value that matches the regular expression given. Once you have the handle to the element of interest, you can call CXML-GET-DATA to retrieve the data associated with the element.