[xml] Still some words about XPath



Hi,
Here are some remarks about the XPath module, more may come later.

 · is there any good reason not to have a function xmlXPathNewObject
   instead of copying the allocation code in every xmlXPathNew*
   function?

 · xmlXPathNewNodeSet returns an "empty node-set" object when it is
   passed NULL, whereas xmlXPathNewNodeSetList returns NULL and
   xmlXPathWrapNodeSet returns an empty object (obj->nodesetval is
   NULL).
   xmlXPathNewNodeSet is consistant with xmlXPathNewString and
   xmlXPathNewCString.

 · is there any good reason keeping unused structures and types in
   xpath.h?

Tom.




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