oid_first_tag
oid_first_tag ([doc])
This function returns the OID of the first element start tag in the document. oid_first_tag takes an optional argument, doc, that specifies the identifier of the document tree. If doc is omitted or 0, then the current document is used.
Use
oid_first_tag instead of
oid_first, when you do not want comments and processing instructions at the beginning of the document.