From: <Mur...@Co...> - 2003-10-25 07:31:19
|
> From: lib...@li... > > What is happening with the SAX API changes for namespaces? > I've had > > to add quite a bit of code to cope with them correctly. > > Nothing needs to be done here because, by nature, the SAX API > is not aware of namespaces. Do you mean the libxml SAX Parser, or SAX Parsers in general? I can imagine that some SAX-like parser might have a namespace declaration callback, and might pass the namespace prefix and/or uri for each node. > Your derived SAX parser must > decide how to deal with them. It is not hard to see if an > attribute name equals "xmlns" to check for a namespace > declaration or string.find(':') to look for a namespace > prefix on an element or attribute. |