Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error in web.xml  RSS feed

 
Gaurav Chhabras
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am writing following web.xml


<?xml version="1.0" encoding="UTF-8" ?>

this is the first line of web.xml and it is giving some error , could someone please tell me that what is the error in that.

Thanks
Regards
Gaurav
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Gaurav Chhabras
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it contains all necessary lines but it is giving error at this line only
 
Vishnu Prakash
Ranch Hand
Posts: 1026
 
Gaurav Chhabras
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks to all , now my problem is solved
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A popular error for the "first line" of an xml file is the mind-boggling:
The processing instruction target matching "[xX][mM][lL]" is not allowed.

Which can be generated if you accidently introduced ANYTHING before the first < character.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!