public_id
public_id ([doc])
This function returns the SGML public identifier for the document being edited, but it returns the null string for an ASCII file. The doc argument specifies the identifier of the document tree to query. If omitted or 0, the current document is used.