+ Reply to Thread
Results 1 to 2 of 2

Exporting XML data

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    Hellas
    MS-Off Ver
    Excel 2010
    Posts
    3

    Exporting XML data

    When I export XML data, a message tells me that the XML maps in my workbook are not export.
    I know that an XML mapping cannot be exported if the mapped element’s relationship with other elements cannot be preserved. This relationship may not be preserved for the following reasons:
    The schema definition of a mapped element is contained within a sequence with the following attributes:
    The maxoccurs attribute is not equal to 1.

    Why is that? I don't understand.
    Moreover, how could i have repeated elements without the maxoccurs>1 ???


    For example, i have the following schema (from http://office.microsoft.com/en-us/ex...1041933.aspx):

    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="Root">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element minOccurs="0" maxOccurs="1" name="EmployeeInfo">
    <xsd:complexType>
    <xsd:all>
    <xsd:element minOccurs="0" maxOccurs="1" name="Name" />
    <xsd:element minOccurs="0" maxOccurs="1" name="Date" />
    <xsd:element minOccurs="0" maxOccurs="1" name="Code" />
    </xsd:all>
    </xsd:complexType>
    </xsd:element>
    <xsd:element minOccurs="0" maxOccurs="unbounded" name="ExpenseItem">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="Date" type="xsd:date"/>
    <xsd:element name="Description" type="xsd:string"/>
    <xsd:element name="Amount" type="xsd:decimal" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>

    This example cannot be exported.

  2. #2
    Registered User
    Join Date
    06-29-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Exporting XML data

    Excel just doesn't support this....

    see these references:
    http://office.microsoft.com/en-us/ex...115.aspx?CTT=3

    http://office.microsoft.com/en-us/ex...010206401.aspx

    trying to think of a work around. please post here if anyone has ideas. I am assuming we are here because we want to be able to use Excel to make updates to xml data to be consumed by other tools.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1