Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7040813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:57:46+00:00 2026-05-28T01:57:46+00:00

I am trying to use org.simpleframework.xml. classes to handle xml data on my Android

  • 0

I am trying to use org.simpleframework.xml. classes to handle xml data on my Android project. I can’t understand how to build my class “ChecklistGradeDetail” but i get this

01-09 14:56:05.615: WARN/System.err(896): org.simpleframework.xml.core.PersistenceException: Element 'ChecklistGradeDetail' declared twice at line -1

xml/rest

<ArrayOfChecklistGradeDetail xmlns="http://schemas.datacontract.org/2004/07/TeamTask.Service" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ChecklistGradeDetail>
    <ChecklistItemID>34</ChecklistItemID>
    <ChecklistItemText>requirements</ChecklistItemText>
    <Comments>please pass</Comments>
    <CreatedOn>2011-09-07T16:30:08.14</CreatedOn>
    <GradeDetailID>362</GradeDetailID>
    <NotPerformed>false</NotPerformed>
    <Preceptor>System Administrator</Preceptor>
    <Satisfactory>true</Satisfactory>
    <Unsatisfactory>false</Unsatisfactory>
    <UserID>admin</UserID>
</ChecklistGradeDetail>
<ChecklistGradeDetail>
    <ChecklistItemID>35</ChecklistItemID>
    <ChecklistItemText>write test</ChecklistItemText>
    <Comments>please pass</Comments>
    <CreatedOn>2011-09-07T16:30:08.14</CreatedOn>
    <GradeDetailID>363</GradeDetailID>
    <NotPerformed>false</NotPerformed>
    <Preceptor>System Administrator</Preceptor>
    <Satisfactory>true</Satisfactory>
    <Unsatisfactory>false</Unsatisfactory>
    <UserID>admin</UserID>
</ChecklistGradeDetail>
<ChecklistGradeDetail>
    <ChecklistItemID>36</ChecklistItemID>
    <ChecklistItemText>execute test</ChecklistItemText>
    <Comments>please pass</Comments>
    <CreatedOn>2011-09-07T16:30:08.14</CreatedOn>
    <GradeDetailID>364</GradeDetailID>
    <NotPerformed>false</NotPerformed>
    <Preceptor>System Administrator</Preceptor>
    <Satisfactory>true</Satisfactory>
    <Unsatisfactory>false</Unsatisfactory>
    <UserID>admin</UserID>
</ChecklistGradeDetail>
</ArrayOfChecklistGradeDetail>

ArrayofChecklistGradeDetail class

    @Root
public class ArrayOfChecklistGradeDetail {
    @ElementList(name="ChecklistGradeDetail")
    public ArrayList<ChecklistItems> Checklist;
}

ChecklistItem class

public class ChecklistItems {
    @Element(required=false)
    public String ChecklistItemID;
    @Element(required=false)
    public String ChecklistItemText;
    @Element(required=false)
    public String Comments;
    @Element(required=false)
    public String CreatedOn;
    @Element(required=false)
    public String GradeDetailID;
    @Element(required=false)
    public String NotPerformed;
    @Element(required=false)
    public String Preceptor;
    @Element(required=false)
    public String Satisfactory;
    @Element(required=false)
    public String Unsatisfactory;
    @Element(required=false)
    public String UserID;  

}

help 🙁

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:57:47+00:00Added an answer on May 28, 2026 at 1:57 am

    I figured out the problem.
    ArrayofCheclistGradeDetail class needed to be as follows

        @Root
    public class ArrayOfChecklistGradeDetail {
        @ElementList(entry="ChecklistGradeDetail", inline=true)
        public ArrayList<ChecklistItems> Checklist;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use org.simpleframework.xml . classes to handle xml data on my
Trying to use an excpetion class which could provide location reference for XML parsing,
I'm trying to use the restlet.org library to build a RESTful web interface, and
I am trying to use Abstract Base Classes in Python 2.5 ( http://docs.python.org/library/abc.html ).
symfony: http://www.symfony-project.org pjax: https://github.com/defunkt/jquery-pjax Hi all, I'm trying to use pjax in symfony in
I'm trying to learn to use xml in Java (Android platform, using Eclipse and
I'm trying to use an image from a URL with Kohana image class. http://kohanaframework.org/3.0/guide/api/Image
I'm trying to use some xml name spaces here, <html xmlns=http://www.w3.org/1999/xhtml xmlns:h=http://java.sun.com/jsf/html xmlns:a4j=http://richfaces.org/a4j xmlns:rich=http://richfaces.org/rich
I am trying to use this package: http://pypi.python.org/pypi/guess-language/0.1 I've read the documentation/wiki, but can't
I'm trying to use RestSharp ( http://restsharp.org/ ) in a Windows Phone 7 project,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.