[xml] C API question: reading attribute name?



I am a beginner with libxml, and I have a problem which hours of searching through the API documentation hasn't been able to help with.

If I have a file which contains:

<?xml version="1.0"?>
<foo bar="blah">
    <t1>text</t1>
</foo>

How do I get the attribute name "bar"?  I'm able to get the value of bar (blah) using xmlTextReaderGetAttribute(), but I can't seem to find a way to print out the attribute name itself (bar).

Is it possible using C bindings?
thx-

    Jeremy



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