org.w3c.dom.DOMException: Only one root element allowed code example
Example: org.w3c.dom.DOMException: Only one root element allowed
You must have only one root,
it means you must have only once a tag that surround every all tags.
For example you can surround all your tags by <root></root>