Re: [xml] custom payload on xmlNode* objects?



On Sat, Jan 15, 2005 at 12:45:28PM +0100, Martijn Faassen wrote:
Daniel Veillard wrote:
On Fri, Jan 14, 2005 at 09:47:31PM +0100, Martijn Faassen wrote:
[I ask about some space on the xmlNode struct for extra app-specific 
payload]
 content should not be used on elements, it used to be for line numbers.
But what you really need to use is _private. I think it's what PHP 
(or is it libxml++ ?) uses for backpointers.

Oh, oops, I managed to miss that entirely! Didn't expect that to be at 
the start of the struct; only checked out the end. Great, thanks, I'll 
try getting that going then.

  also psvi is already used by Relax-NG validation, so you should really
not use it.
   See also xmlRegisterNodeDefault(), xmlDeregisterNodeDefault() and
the --chkregister option of xmllint. If you have trouble with registration
or _private use it should be reproductible with xmlling --chkregister.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team 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]