Skip to main content

get_id

Function get_id 

Source
pub unsafe fn get_id(doc: *mut _xmlDoc, id: *const xmlChar) -> *mut _xmlAttr
Expand description

Upstream xmlGetID(doc, ID): returns the attribute holding the ID, or the document pointer itself when operating on a stream (attribute node no longer exists).

§SAFETY

  • doc/ID must be valid pointers or NULL.