XML_GetTagElement

Finds the entire element for a given tag. The function searches between the given start and end pointers and returns an updated element structure.

Service:VFS

Syntax

#include <xmlnss.h>

STATUS XML_GetTagElement (
   utf8_t             *tag,
   utf8_t             *bufferStart,
   utf8_t             *bufferEnd,
   XML_ElementInfo_s  *elementInfo);

Parameters

tag

Points to the NULL-terminated tag name for the element to be found.

bufferStart

Points to the starting position of the search.

bufferEnd

Points to the ending position of the search.

elementInfo

Points to the structure that is updated to show where the given element starts and ends.

Return Values

Returns zOK if the tag is found. Otherwise, it returns zFAILURE.