Re: [xml] how to set or reset a namespace prefix?
- From: Daniel Veillard <veillard redhat com>
- To: Stefan Kost <ensonic hora-obscura de>
- Cc: xml gnome org
- Subject: Re: [xml] how to set or reset a namespace prefix?
- Date: Mon, 16 Jan 2006 05:05:34 -0500
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]