Simple xml parser to convert xml or html to json object