… yes? It’s simple XML parsing, and then taking it as text, serialised HTML, or an already-parsed DOM tree. You are using an actual XML parser, right?
In most environments it’s no harder, and in browsers themselves (which is where half of it is consumed) it’s arguably easier.