Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SAX2 Reference

getLineNumber Method (C/C++)

Returns the line number where the current document event ends.

This is the line position of the first character after the text associated with the document event. This method is permitted to show position within the text associated with the text event.

Syntax

HRESULT getLineNumber(
   [out, retval] int * pnLine);

Parameters

pnLine [out, retval]
The line number. The pnLine is –1 if the Locator object is not associated with some source input or a position within the source input.

Return Values

S_OK
The value returned if line number returned successfully.

See Also

getColumnNumber Method (C/C++)

Applies to: ISAXLocator Interface