XML_BackwardFindEndTag

Searches backwards from the cursor to the start of the buffer to find the specified tag as an end tag.

Service:VFS

Syntax

#include <xmlnss.h>

STATUS XML_BackwardFindEndTag (
   utf8_t  *tag,
   utf8_t  *cursor,
   utf8_t  *bufferStart,
   utf8_t  **startOfTag);

Parameters

tag

Points to the name of the tag (NULL-terminated string) to search for.

cursor

Points to the starting search position. The search works backwards from this position.

bufferStart

Points to the start of the buffer (the last position to be searched).

startOfTag

Points to the position of the first angle bracket in the end tag.

Return Values

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