+ Reply to Thread
Results 1 to 1 of 1

Excel XML: How to not export empty <xs:complexType> field?

  1. #1
    Registered User
    Join Date
    03-14-2024
    Location
    France
    MS-Off Ver
    Microsoft 365
    Posts
    1

    Excel XML: How to not export empty <xs:complexType> field?

    Hello everyone,

    I use the Excel Import/Export XML feature (from the developper tab) and i'm encountering an issue with exporting empty data.

    I would like to not export a <xs:complexType> when values are empty. So like the <xs:simpleType> exporting behavior.

    Here are my reproduction steps :
    1. Create an .XSD :
      Please Login or Register  to view this content.
    2. Import this XSD as XML Source Mapping in Excel.
    3. Add some data to the mapping table :
      excelissue.png
    4. Export to XML : pastebin.com/qPCc76xk (sorry i don't have any permission to publish HTML or URL, so here's the picture of the result)
      excelissue2.png
    5. Consate the result: when a <xs:complexType> is empty, my XML will still contain the field whereas (<xs:simpleType>) will disappear correctly

    So how to reproduce this behavior for the <xs:complexType>? I have tested several attributes but never got the expected result.

    Regards,
    Last edited by jackieenfolie; 03-14-2024 at 07:52 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Outlook Field Export to Excel via VBA Help
    By dbsbender in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-11-2020, 07:13 PM
  2. Find duplicate field values and export those records to excel file
    By sirhacksalot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2013, 10:59 AM
  3. Replies: 0
    Last Post: 06-22-2012, 11:28 AM
  4. Export a field from text file to excel and remove duplicates
    By premkrishnan in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-08-2011, 05:51 AM
  5. Export Excel into csv: Why headers and empty cells!?!
    By FlipFlops in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-24-2011, 12:56 PM
  6. export cell from excel to field in word document
    By andrea.aramburu in forum Excel General
    Replies: 1
    Last Post: 03-31-2011, 06:40 PM
  7. Export memo field in Access to Excel - data gets cut off
    By cpurpleturtle in forum Excel General
    Replies: 0
    Last Post: 06-22-2006, 11:30 AM

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