isCOBOL Evolve : Appendices : Library Routines : C$XML : CXML-GET-SIBLING-BY-ATTR-NAME
CXML-GET-SIBLING-BY-ATTR-NAME
The CXML-GET-SIBLING-BY-ATTR-NAME function returns the handle of the sibling element that includes the specified attribute.
Syntax:
 CALL "C$XML" USING CXML-GET-SIBLING-BY-ATTR-NAME
                    handle
                    attrName
                    attrFlags
             GIVING siblingHandle
Parameters:
CXML-GET-SIBLING-BY-ATTR-NAME
Constant
 
handle
USAGE HANDLE
A XML element handle.
attrName
PIC X(n)
It specifies the attribute name to search.
attrFlags
PIC 9(n)
It specifies if the search should consider case. Valid values are:
0 - case sensitive search
1 - case insensitive search
Return code:
siblingHandle must be a USAGE HANDLE data item. It receives the handle of the found sibling element or 0 if such element wasn’t found. It’s good practice to free this handle with a DESTROY statement before reusing it in order to avoid memory leaks.