RE: [libxml++] Re: Threatening 1.0 again



> From: libxmlplusplus-general-admin lists sourceforge net 
> > 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.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]