I need to parse an xml string and find values of specific text nodes, attribute values etc. I'm doing this in javascript and was using the DOMParser class for the same. Later I was informed that DOM is takes up a lot of memory and SAX is a better option.
Recently I found that XPath too provides a simple way to find nodes.
But I'm not sure which amongst these 3 would be the most efficient way to parse XML. Kindly help....