[GirdView]How can I make parent node using existing colums?

Are you missing a feature? Request its implementation here.
leesangmok
Posts: 5
Joined: Wed Aug 13, 2008 4:15 am

[GirdView]How can I make parent node using existing colums?

Post by leesangmok »

Sorry for my poor english expression.

I imported EXCEL file, and I want to make some columns to parent node.
for example, in GridView I want to three <book>s to node '<books>'.

<items>
<subitems>
<book></book>
<book></book>
<book></book>
</subitems>
<items>
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: [GirdView]How can I make parent node using existing colums?

Post by sorin_ristache »

Hello,

What result do you want to have? That is not clear from what you posted. What is the current XML file and what do you want to obtain in the Grid mode or maybe in other mode of the XML editor?


Regards,
Sorin
leesangmok
Posts: 5
Joined: Wed Aug 13, 2008 4:15 am

Re: [GirdView]How can I make parent node using existing colums?

Post by leesangmok »

Sorry
I want to make xml like this.
<mybook>is added as a parent node of <book>.
Of course, I know how to design this in XML Grid Mode. But before <mybook> is added and all data is filled, how can I merge <book>s into <mybook>.
(The addElementBefore or After function do not make parent mode)




---------before

<items>
<subitems>
<book>novel1</book>
<book>magazine1</book>
<book>cartoon1</book>
</subitems>
<subitems>
<book>novel2</book>
<book>magazine2</book>
<book>cartoon2</book>
</subitems>
<items>


---------after

<items>
<subitems>
<mybook>
<book>novel1</book>
<book>magazine1</book>
<book>cartoon1</book>
</subitems>
<subitems>
<book>novel2</book>
<book>magazine2</book>
<book>cartoon2</book>
</subitems>
</mybook>
<items>
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: [GirdView]How can I make parent node using existing colums?

Post by sorin_ristache »

Hello,

You can insert subitems in a mybook in Grid mode with the following steps:
  • Right click on subitems and select Insert before - Element.
  • Write the name of the new element: mybook.
  • Right click on subitems and select Cut.
  • Right click on mybook and select Paste as Child.

Regards,
Sorin
Post Reply