ILITParserHost::Tag

The Tag method accepts notification of a tag in the content stream.

Syntax

HRESULT Tag(
[in] IUnknown* pTag
[in] BOOL fChildren
);

Parameters

pTag

The populated tag

fChildren

This has a value of true if the tag has children (either text or nested tags within the tag)

Return Values

S_OK

E_INVALIDARG

E_OUTOFMEMORY

E_UNEXPECTED

E_FAIL

Remarks

If fChildren is true, a matching EndChildren() is required. If fChildren is false, EndChildren() must not be called for this tag.  In case of unbalanced calls, E_UNEXPECTED is returned from Finish() or EndChildren(), as soon as the problem is detected (which is likely to be much later than the actual error).

See Also

© 2000 Microsoft Corporation. All rights reserved. Terms of use.