Page 1 of 1

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

Posted: Wed Aug 13, 2008 4:24 am
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>

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

Posted: Wed Aug 13, 2008 12:32 pm
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

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

Posted: Thu Aug 14, 2008 3:47 am
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>

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

Posted: Thu Aug 14, 2008 11:00 am
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