Re: [xml] xmlGetNodePath() returns invalid path for XML_DTD_NODE

2021-03-13 Thread Nick Wellnhofer via xml
On 08/02/2021 18:01, Christoph M. Becker wrote: On 08.02.2021 at 17:23, Nick Wellnhofer wrote: This should be fixed for other node types as well. Does the attached patch work for you? Yes, that works fine. Thank you! This is fixed in master now: https://gitlab.gnome.org/GNOME/libxml2/-/com

Re: [xml] xmlGetNodePath() returns invalid path for XML_DTD_NODE

2021-02-08 Thread Christoph M. Becker via xml
On 08.02.2021 at 17:23, Nick Wellnhofer wrote: > On 28/01/2021 14:51, Christoph M. Becker via xml wrote: >> -    if ((node == NULL) || (node->type == XML_NAMESPACE_DECL)) >> +    if ((node == NULL) || (node->type == XML_NAMESPACE_DECL) >> +    || (node->type == XML_DTD_NODE)) >>   retu

Re: [xml] xmlGetNodePath() returns invalid path for XML_DTD_NODE

2021-02-08 Thread Nick Wellnhofer via xml
On 28/01/2021 14:51, Christoph M. Becker via xml wrote: -if ((node == NULL) || (node->type == XML_NAMESPACE_DECL)) +if ((node == NULL) || (node->type == XML_NAMESPACE_DECL) +|| (node->type == XML_DTD_NODE)) return (NULL); This should be fixed for other node types as we