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

  • Home
  • SEARCH
  • 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 8895219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:43:13+00:00 2026-06-14T23:43:13+00:00

<folder id=-1 name=BaseFolder > <folder id=1047 name=Folder1 > <folder id=1050 name=Folder1.1 /> </folder> <folder

  • 0

<folder
    id="-1"
    name="BaseFolder" >
    <folder
        id="1047"
        name="Folder1" >
        <folder
            id="1050"
            name="Folder1.1" />
    </folder>
    <folder
        id="1048"
        name="Folder2" >
        <folder
            id="1053"
            name="Folder2.1" />
        <folder
            id="1054"
            name="Folder2.2" />
    </folder>
    <folder
        id="1049"
        name="Folder3" >
        <folder
            id="1051"
            name="Folder3.1" />
        <folder
            id="1052"
            name="Folder3.2" />
    </folder>
</folder>

These are the classes im using

    @Root
public class Response extends BaseResponse {

    private static final long serialVersionUID = 1L;



    @ElementList(entry="folder", inline=true)
    public ArrayList<Folder> folderList;


    public String getSuccess() {
        return success;
    }

    public void setSuccess(String success) {
        this.success = success;
    }

    @Attribute
    private String success;

    }

Folder class

@Root
public class Folder extends BaseResponse {




    private static final long serialVersionUID = 1L;

    @Attribute
    private String id;

    @Attribute
    private String name;



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }



}

How can i access the inner folder tags?
In the activity im calling

List <Folder>folders=new ArrayList<Folder>();
    Response response = new Response();
response = directoryService.getResponses();
folders=    response.folderList;

    for(int i=0;i<folders.size();i++)
            {
                Log.e("Contents of folders are ",folders.get(i).getName());

            }

Im able to print BaseFolder.But how to access the inner tags and how can i get them in a list so that i can show them in some list view.Does any one have any idea?

  • 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-06-14T23:43:14+00:00Added an answer on June 14, 2026 at 11:43 pm

    I changed the Folder object to

    @Root
    public class Folder extends BaseResponse {
    
    
    
    
        private static final long serialVersionUID = 1L;
    
        @ElementList(entry="folder", inline=true,name="name",required=false)
        public ArrayList<Folder> llfolder;
    
    
    
    
    
        public ArrayList<Folder> getLlfolder() {
            return llfolder;
        }
    
        public void setLlfolder(ArrayList<Folder> llfolder) {
            this.llfolder = llfolder;
        }
    
        @Attribute(required=false)
        private String id;
    
        @Attribute(required=false)
        private String name;
    
    
    
        public String getId() {
            return id;
        }
    
        public void setId(String id) {
            this.id = id;
        }
    
        public String getName() {
            return name;
        }
    
        public void setName(String name) {
            this.name = name;
        }
    
    
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to parse the folder name and file name from passed argument.
How could I retrieve the current working directory/folder name in a bash script, or
Is it possible for python to accept input like this: Folder name: Download But
Inside the project folder there is a project's name folder, Release and Debug folder.
I usually put MAMP MySQL /db/db-site-name folder under SVN. When MAMP starts, it gives
Which name need the sql-file in the sql folder? When I want to load
I have a folder with scripts with a name pattern of UPDATE[x.y.z] where x.y.z
I have some path c:\server\folderName1\another name\something\another folder\ . How i can extract from there
I have two tables: Folder, Files. Each table has 4 fields: ParentID, ID, Name,
Say there is a folder, '/home/user/temp/a40bd22344'. The name is completely random and changes in

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.