473,385 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Merging of two branches into a complete tree.

Say I have branchA:
Expand|Select|Wrap|Line Numbers
  1. <tree id = "1">   
  2.    <item id = "10">
  3.       <item id = "100"/>
  4.    </item>
  5. </tree> 
  6.  
, and branchB:
Expand|Select|Wrap|Line Numbers
  1. <tree id = "100">   
  2.    <item id = "20"/>
  3.    <item id = "21"/>
  4. </tree>
  5.  
, and I want to join them to get treeC:

Expand|Select|Wrap|Line Numbers
  1. <tree id = "1">   
  2.    <item id = "10">
  3.       <item id = "100">
  4.          <item id = "20"/>
  5.          <item id = "21"/>
  6.       </item>
  7.    </item>
  8. </tree> 
  9.  
Any suggestions?
Mar 30 '07 #1
1 1223
dorinbogdan
839 Expert 512MB
Welcome to TheScripts TSDN...

See this thread.

If not succeed, please let me know.

God bless you,
Dorin.
Mar 30 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Piet | last post by:
Hi there. I have a problem when working with a wxTreeCtrl. I would like to expand all branches of a sepcific position in a tree with a single command. Since there does not appear to be such a...
3
by: William Ahern | last post by:
I'm looking for resources on splitting and merging XML trees. Specifically, on methods to pare large XML documents into smaller documents which can be merged later. Off of the top of my head, I...
4
by: Max | last post by:
Hi guys, did some searching on the topic, but can't find much more then just basic info on binary trees. I need to write a binary tree implementation so that it is always complete. In other words...
3
by: Sanjib Biswas | last post by:
Hi All, I am looking for XML merging for the following scenarios. I want to load both the input files and show in the tree viewer and highlight the differences. Now its up to the user to select...
0
by: Nick 'The Database Guy' | last post by:
Despite the windy weather my driveway is still relatively unobstructed with folliage, so you might ask what is my problem. I am using the tree view active X control and was wondering the correct...
4
by: gagan.singh.arora | last post by:
I had a test today and there was a question regarding how to merge two AVL trees to form another AVL tree without using any AVL tree operations. Some had done it by using an array, sorted the...
6
by: Henrik Goldman | last post by:
Hello, I have a dataset which consist of a string username and string hostname as a key and then an integer representing a count as the matching "second" value in a pair. So far I've used...
3
by: =?iso-8859-1?Q?Tine_M=FCller?= | last post by:
On this site http://www.tinemuller.dk/sikkerbyg/ the dropdown is functioning the way it should for the different part in Denmark but now I want to show the same informations for the hole Denmark...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.