Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

A mapped element's relationship with other elements cannot be preserved

$
0
0
Hi,

I am trying to create an XML file from an XSD using excel macros and data from excel worksheet. The mapping takes place fine. However, when I try to save the mapped items into an XML file using SaveAsXML function, it gives me the following reason why the XML is not exportable:

A mapped element's relationship with other elements cannot be preserved

The XSD has multiple single elements and one repeating element with 2 non-repeating child elements. If I remove this repeating element, the error is removed.

Could someone please help is resolving this issue?

Thanks

Viewing all articles
Browse latest Browse all 11829

Trending Articles