cutesolutions Posted April 6, 2009 Share Posted April 6, 2009 I got an error while filling a jasperreport with a JRCmlDataSource. Parse Error at line 1 column 8: cvc-elt.1: Cannot find the declaration of element 'users'. The XML file:<users> <user id="0"> <name>Christian</name> <nummer>2</nummer> </user> <user id="2"> <name>Hans</name> <nummer>3</nummer> </user> <user id="1"> <name>Max</name> <nummer>4</nummer> </user></users>the source:JRXmlDataSource jrxmlds = new JRXmlDataSource(_xmlDataSource);JasperReportManager reportManager = new JasperReportManager(_reportSource, jrxmlds);I don't know what is wrong. Can somebody help me please? Link to comment Share on other sites More sharing options...
andfedotov Posted May 15, 2009 Share Posted May 15, 2009 what about this as a first line? <?xml version="1.0" encoding="UTF-8"?> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now