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 4240018
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:06:37+00:00 2026-05-21T03:06:37+00:00

I am working in graphical application that uses objects and groups. So, items can

  • 0

I am working in graphical application that uses objects and groups. So, items can be grouped in a group. A group can contain other groups and items.

To copy the items and groups I produce an XML describing such items and groups and send the information to the clipboard, for example:

<!DOCTYPE tnkClpObjData>
<tnkItems>
    <tnkGroup id="003">
        <tnkItem>
            <PluginName>Ellipse</PluginName>
        </tnkItem>
        <tnkItem>
            <PluginName>Rectangle</PluginName>
        </tnkItem>
        <tnkGroup id="002">
            <tnkItem>
                    <PluginName>Rectangle</PluginName>
            </tnkItem>
            <tnkGroup id="001">
                    <tnkItem>
                        <PluginName>LineEdit</PluginName>
                    </tnkItem>
                    <tnkItem>
                        <PluginName>Label</PluginName>
                    </tnkItem>
            </tnkGroup>
        </tnkGroup>
    </tnkGroup>
</tnkItems>

For pasting the items I know I need to use the XML but what would be the best way to implement it? Do I first create the items and then the group? or do I need to navigate the tree from the deepest item up to the first?

Thanks,
Carlos.

  • 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-21T03:06:38+00:00Added an answer on May 21, 2026 at 3:06 am

    I used recursive functions for this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an application that uses raster images, so it only looks
I'm working with a Win32 application that needs to create a variety of custom
I'm working on a very graphic-heavy application which uses content from a bunch of
I'm working on a graphical application which looks something like this: while (Simulator.simulating) {
I'm working on a graphics application that is using virtual classes fairly extensively. It
I'm working on a 3D graphical application in Java using the Java 3D API.
I am trying to build a Google Maps-driven web application that can display a
I'm working on a streaming media application that pushes a lot of data to
i am working one application image uploading to sdcard i am scaling that sdcard
Working with a SqlCommand in C# I've created a query that contains a 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.