doc_type_namespaces
doc_type_namespaces (doc, arr)
This function populates an associative array with all of the namespaces imported into the XML Schema for the document type associated with doc. The associative array has the namespace prefix as the key, and the namespace URI as the value. The function returns the number of entries in the array.
If doc is omitted or 0, then the current document is used.