I am having a little trouble with my XML parser, effectively I have an XML structure like so:
<c r="K6" s="35">
<v>135</v>
</c>
& I need to extract the value v XXX /v dependent on whether c r=”K6″ s=”35″ falls within a specific range. This is simple enough using reg ex’s etc… but my issue is that when I pull down the qName in startElement(), rather than returning the value: c r="K6" s="35" its simply returns: c. I am 99% sure this is because qName breaks at the first space. How can I get qName to return everything within the <> brackets?
Cheers
XML tags cannot contain spaces. What you have in your XML element is
c,rwith the valueK6,swith the value35.SAXParseralready returns the values of all attributes to you in the attribute list that you get along with the element that has itsqNameset to"c".