XML to JSON Converter

Parse XML and convert to JSON using DOMParser. Handles attributes, text nodes, and nesting.