Re: [xml] are "nameless" nodes allowed?

On Tue, Sep 07, 2004 at 01:46:01PM +0200, oliverst online de wrote:

if I call

xmlNewNode(NULL, BAD_CAST "");

and put it into my tree, I get this node in my document:


Is this actually allowed? I am not familiar with the standard, but it
seems wrong to me.

  Yes, don't do that !
Now I'm not sure we should change the API behaviour since people may want 
to make nodes using their own string (though they could still do this
with xmlNewNodeEatName).


Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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