Compartilhar via


IXMLNodeSource::GetLineBuffer

4/8/2010

This method returns the current line of XML that is being parsed. When there is an error, it is helpful to see the original decoded XML that contained the error.

Syntax

HRESULT GetLineBuffer( 
  const WCHAR * ppwcBuf,
  ULONG * pulLen,
  ULONG * pulStartPos
);

Parameters

  • ppwcBuf
    [out] Pointer into the decoded XML buffer
  • pulLen
    [out] The length of the buffer
  • pulStartPos
    [out] The position of the error inside the buffer

Return Value

This method is not guaranteed to always return something. If no parse is started or if there was an error fetching any XML data, this method will return an empty buffer of length 0.

Remarks

Other kinds of IXMLNodeSource interfaces might be unable to provide this information.

Requirements

Header xmlparser.h
Library xmlparser.lib
Windows Mobile Pocket PC 2000 and later, Smartphone 2002 and later

See Also

Reference

IXMLNodeSource