I'm attempting to parse an XML string with libxmljs (https://github.com/polotek/libxmljs). I'm having some issues though. I need to apply logic to what I'm parsing and return based upon what's defined and what isn't. Because of this I don't see a SAX-style parser being a valid option.
I'm willing to look at other alternatives if I can achieve what I'm looking for. Being able to select elements like DOMParser xmlDoc.getElementsById('firstName')[0].childNodes[0].nodeValue would be awesome...