Displaying 1 result from an estimated 1 matches for "xml_reader_type_end_element".
2009 Jun 08
4
how can i get attribute values from xml using libxml
...uot;>....................
then i have to use Category attribute but reader class couldnt
recognize attributes
when i use these codes below for testing;
while reader.read
puts reader.node_type
end
it shows only 1 and 15 values which means
XML_READER_TYPE_ELEMENT => 1
XML_READER_TYPE_END_ELEMENT => 15
how can i get attribute values?
i tried another method
doc = reader.expand
doc.find(''//Root/Stk/[Category=''601'']'')
but it also didnt work