Re: [xml] patch: xmlTextReaderGetAttribute



On Sun, Aug 07, 2005 at 11:52:57PM -0400, Rob Richards wrote:
attached is patch for xmlTextReaderGetAttribute.
Using the following document
<chapter xmlns:a="http://www.example.com/namespace-a";>
  <a:section a:id="about" id="2" />
</chapter>

calling xmlTextReaderGetAttribute('id') when positioned on section 
element returns the value "about" instead of "2".
It takes a qualified name as a parameter so should not grab a namespaced 
attribute.
With patch it works just like xmlTextReaderMoveToAttribute.

Also removed the check on localname being NULL as its not needed. A NULL 
localname is handled and function returned prior to this point.

  Right, that make sense, applied and commited.

    thanks a lot !

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]