+ Reply to Thread
Results 1 to 6 of 6

xls Schema troubles

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

    xls Schema troubles

    I am trying to export some data to xml, for use in a cs5 flash application. The data contains German characters (öäüß) and as such the "standalone" attribute MUST be set to "no" (or not be present) - other wise the characters won't appear, or will come up like "u%1/4" etc

    The problem is that the output file keeps coming up with; standalone="yes" any ideas why?? At first I didn't specify the attribute and excel put it in by itself and now I have specified it to be "no" and it still generates a yes in the xml that is out putted.

    Here is my xls:

    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="AngebotslisteTable">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="AngebotslisteRow" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="AngebotslisteRow">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="Kunde" type="xs:string"/>
    <xs:element name="Projektbezeichnung" type="xs:string"/>
    <xs:element name="bearbeitende" type="xs:string"/>
    <xs:element name="Pate" type="xs:string"/>
    <xs:element name="Datum" type="xs:date"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: xls Schema troubles

    What about enclosing the actual data in CDATA tags, this way it wont be parsed by the parser?
    Please take time to read the forum rules

  3. #3
    Registered User
    Join Date
    06-08-2012
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    11
    How do I do that?

  4. #4
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: xls Schema troubles


  5. #5
    Registered User
    Join Date
    06-08-2012
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: xls Schema troubles

    Thanks for the response, but I can't get it to work. If I put cdata in the schema file it either makes it unreadable to excel, or it just skips the "standalone" attribute completely giving me the same issue.

    I can't put the cdata in the xml file because it is being overwritten entirely, so that has no effect.

    And I have no idea how to write something in vb so again a wall.

    Where could I put cdata so that it may have the desired effect, or failing that, how do I create a xml using vb, so that I can define the "standalone" attribute there?

    Thanks again.
    Bob

  6. #6
    Registered User
    Join Date
    06-08-2012
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: xls Schema troubles

    OK I have figured out the issue, and this is now irrelevant.
    thanks for your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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