Click to See Complete Forum and Search --> : Map Multiple Elements in Excel


AStarWithin
05-02-2005, 03:27 PM
Hi, I'm trying to map a single element to multiple columns in Excel and I'm having a bit of trouble. For example, my schema looks like this:

<?xml version="1.0" encoding="utf-8" ?>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<element name="Root">
<complexType>
<sequence>
<element name="Distribution" maxOccurs="unbounded">
<complexType>
<sequence>
<element name="town" type="positiveInteger" />
<element name="species" type="positiveInteger" />
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
</schema>



and I want to map species to a bunch of columns... however, I get the message: This element is aleady mapped, an element cannot be mapped more than once.

I read somewhere that you have to change the ancestor element... but I'm not sure what to do. Can anyone help?

Thanks!

AStarWithin
05-03-2005, 06:33 AM
I'm sorry, I seem to have forgotten to mention that this is an XML element... I've mapped my XML schema to XML Source... and I'm trying to map a child element to multiple cells.... in the Microsoft troubleshooting section, they say "Multiple repeating elements are mapped to the same XML list, and the repetition not defined by an ancestor element" - but I don't know how to fix that. Please... anyone?

AStarWithin
05-03-2005, 05:56 PM
Anyone? Please... this is for my senior project...