DEV Community 👩‍💻👨‍💻

Sushil Shrestha
Sushil Shrestha

Posted on

Answer: Root element is missing

Make sure you XML looks like this:

<?xml version="1.0" encoding="utf-8"?>

Also, a blank XML file will return the same Root elements is missing exception. Each XML file must have a root element / node which encloses all the other elements.

Top comments (0)

🌚 Browsing with dark mode makes you a better developer.

It's a scientific fact.