File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Error XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Error XML" Watch "Error XML" New topic

Error XML

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 752

Any idea, please?

Vijaya Raghava
Ranch Hand

Joined: Jul 30, 2006
Posts: 37

Hello Angus,

As per the 6 Rules of Well-formed XML, the first rule states:

There must be a single root element and All other elements are nested inside the root element.
And from your example, your root element is not having end tag. The correct code is:

I agree. Here's the link:
subject: Error XML
It's not a secret anymore!