Share via


getPublicId Method (C-C++)

 

Returns the public identifier for the current document event. A public identifier identifies a public domain file located in a publicly accessible place.

Syntax

  
HRESULT getPublicId(  
   [out, retval] const wchar_t ** ppwchPublicId);   

Parameters

ppwchPublicId[out, retval]
The public identifier or Null (if none is available). ppwchPublicId should not be modified or deleted, because this can cause undefined behavior in the SAX parser. If you want to preserve the value that was returned in ppwchPublicId, you should make a deep copy.

Return Value

S_OK
The value returned if the public identifier is returned successfully; Null if no public identifier is available.

Versioning

Implemented in: MSXML 3.0 and later

Applies to

ISAXLocator Interface

See Also

getSystemId Method (C-C++)