Jump to content

validation error in JRXmlDataSource


cutesolutions

Recommended Posts

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

  • 1 month later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...