This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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: 331
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error XML
 
Similar Threads
Quartz Scheduler
How to convert CLOB to UTF8 stream in java.
How to convert CLOB to UTF8
possibalities of getting job,after compleetingthe IBM xml(141) certificate exam.
Market value