Re: [xml] how to set or reset a namespace prefix?



On Mon, Jan 16, 2006 at 09:48:32AM +0100, Stefan Kost wrote:
also this is imho better (forgot that tailing '\0';

  the \0 is included by default in static C strings, so "xhtml" is 
already 6 bytes and 0 terminated.

              memcpy(namespace->prefix,"xhtml\0",6);

  From a stylistic point of view I would avoid such code.

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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