Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML file error

 
vendikonda sravan
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i am getting problem sayin Content is not allowed in prolog. in the fallowing file
I have tryd changing
<?xml version="1.0" encoding="UTF-8"?>
to
<?xml version="1.0" encoding="UTF-16"?>
Still it show ing the same error.


Thanks
sravan V
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's nothing to do with the encoding declaration. There's a dash before the start tag of your root element, see line 6 in what you posted. Get rid of that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic