Skip to main content

xmlTextReaderMoveToAttributeNs

Function xmlTextReaderMoveToAttributeNs 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlTextReaderMoveToAttributeNs( reader: *mut XmlTextReader, localName: *const xmlChar, namespaceURI: *const xmlChar, ) -> c_int
Expand description

int xmlTextReaderMoveToAttributeNs(xmlTextReaderPtr reader, const xmlChar *localName, const xmlChar *namespaceURI).

UPSTREAM-PARITY (xmlreader.c, 2.15): NULL reader/localName/namespaceURI returns -1; a NULL namespaceURI is NOT treated as “no namespace” — the caller must pass the actual URI. The http://www.w3.org/2000/xmlns/ namespace searches namespace declarations (matching the default xmlns declaration or a prefix), everything else searches only namespace-qualified properties (prop->ns != NULL).

§SAFETY

  • localName/namespaceURI must be valid strings (non-NULL).