The Web. XML start constraint inside the MAVEN project is this
<? XML version= "1.0" encoding= "UTF-8" ?> < xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance" xmlns= "http ://java.sun.com/xml/ns/javaee " xsi:schemalocation=" Http://java.sun.com/xml/ns/javaee Http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd " ID=" webapp_id " version = "2.5"/>
When you add something in the back, you get an error:
The markup in the document following the root element must is well-formed.
Translation error: The markup in the document following the root element must be well formed.
Workaround:
<?XML version= "1.0" encoding= "UTF-8"?><Web-appXmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"xmlns= "Http://java.sun.com/xml/ns/javaee"xsi:schemalocation= "Http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"ID= "webapp_id"version= "2.5" ><!--The "/" Here represents the end of the current label Ah Ah Ah -</Web-app>
The Web. XML Project for MAVEN website error The markup in the document following the root element must is well-formed.