bool CMarkup::FindPrevElem( MCD_CSTR szName = NULL );

CMarkup Developer License

FindPrevElem is only in CMarkup Developer and the free XML editor  FOAL C++ scripting.

This method moves the main position to the previous sibling element. If there is no previous sibling element it returns false and leaves the main position where it was.

The FindPrevElem method has an optional argument which allows you to specify a tag name. Calling FindPrevElem("ITEM") will look for a previous sibling ITEM element starting at the element before the current main position and scanning previous siblings. If there is no main position, it will look for the last ITEM element starting at the last sibling under the current parent position. If no matching previous element is found, the position is left as it was before the call to FindPrevElem.

See also ResetMainPos.