cancel
Showing results for 
Search instead for 
Did you mean: 

adding a subelent to Data Type

Former Member
0 Kudos

hello

I would like to know if it is possible to add a subelement to the root, so all the rest subelemtns of the the root will be now under the new one?

for example:

this is what I wrote

<header>

<line_1>

<line_2>

and I would like not the Data Type to be:

<header>

<line>

<line_1>

<line_2>

Thanks

Kfir

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

thanks you for your help.

I was able to do it, but importing edited XSD.

I added to the XSD element, complex type and sequence.

verified the XSD is valid, import the new file and the new tree was displayed.

Kfir

Former Member
0 Kudos

Hi,

I am not sure if there is a direct way for this. You could, however, export the xsd, perform the necessary changes and then re-import it into XI.

You can export and import XSD from Tools option in menu bar.

Thanks,

Bhavish

Award points if comments helpful

Former Member
0 Kudos

Hi Kfir,

There is sno direct way to achieve this, Add the new subelement under the Header and copy paste one by one under this new element.

- Satish

prateek
Active Contributor
0 Kudos

I dont think there is a direct way without recreating the entries manually

A workaround may be to export the xsd, edit it manully (u only have to add one element, one sequence and one complex tags) and then reimport it.

Regards,

Prateek

nisarkhan_n
Active Contributor
0 Kudos

Yes it is possible to add it....

Add the root node to the existing root node Header....and rename header LINE and Root node name to HEADER...try this