my dog learned polymorphism
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 646

Any idea, please?

Vijaya Raghava
Ranch Hand

Joined: Jul 30, 2006
Posts: 34

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!