Re: [xml] int GetIntegerAttribute(node, "myAttribute") ?



On Mon, Jan 03, 2005 at 03:10:20PM -0800, Martin Olsson wrote:

Is there something equivalent of this in libxml -->
int GetIntegerAttribute(node, "myAttribute") ?

  Not that I can think of, not directly.

Or should I use xmlGetProp() and then convert the xmlChar* into an 
integer somehow?

  yes.

Daniel

P.S.: don't use "Reply to" when posting a new question it breaks mail threading.

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