Prehľad
Nástroje obsahu
INT %XML_GetElementsByTagName( INT in node, TEXT in mask )
node | Handle to parent XML node. |
mask | Sample element mask. |
namespace | Optional parameter that defines the name of namespace or prefix of given element. Empty parameter is used providing that XML does not contain namespace. The value "*" is used, when there is not necessary explicitly take into account namespace and the searching is done only by mask of element name. |
INT _listElements _listElements := %XML_GetElementsByTagName(_doc, "elem*") ; e.g.: <element>, <element2> ; Returns handle to the list of elements that match the mask of name. It formally equals the first declaration. _listElements := %XML_GetElementsByTagName(_doc, "elem*","") ; e.g.: <element> , <element2> ; Returns handle to the list of elements that match the mask of name, but ignores namespaces. _listElements := %XML_GetElementsByTagName(_doc, "elem*","*") ; e.g.: <h:element>, <t:element2>, <element> ; Returns handle to the list of elements that equal the given mask and namespace or its prefix. _listElements := %XML_GetElementsByTagName(_doc, "elem*","t") ; e.g.: <t:element>
Pridať komentár