File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Error XML

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 336
Hi



Any idea, please?

Thanks
Vijaya Raghava
Greenhorn

Joined: Jul 30, 2006
Posts: 27

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:



Regards,
Raghava.
 
 
subject: Error XML