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="";>
  <a:section a:id="about" id="2" />

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 
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 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]