Конвертер xsd в excel

This answer is equally for you as well as @Alex, @Michael and @forty-two. I am illustrating it using Excel 2010, so if you’re on another version, I’ll leave it up to you to make the necessary adjustments.

First thing, make sure the developer tab shows (Click the File tab, Options).

Excel 2010 options for Developer tab

You now have to create an XML source from your XSD: click the Developer tab; in the XML group, toggle Source button to show the Xml Source task pane; then click the XML Maps button.

Excel showing key UI elements for creating an XML map

Click Add button at the prompt; point to the XSD file; then click OK to go back to the main screen.

Excel showing XSD loaded in an XML map

Then you can drag and drop your shipOrder to a cell in a worksheet, to anchor the generated mapped table.

Excel showing mapped XSD

Next, you may use Import to get your XML data into the spreadsheet, and Export to get it out. There are a couple of additional things to pay attention to; read this article on Microsoft’s site; pay particular attention to the issues with exporting XML data (error XML maps in my workbook are not exportable). This is because of the 1 to many cardinality between shiporder and item. You can try to handle it using mapped ranges — I’ll leave this all up to you. The best would be for you to read the online help for the XML developer section…

У меня есть файл XSD, и мне нужно преобразовать его в файл MS Excel.
XSD находится ниже.

<?xml version="1.0" encoding="ISO-8859-1" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:element name="shiporder">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="orderperson" type="xs:string"/>
      <xs:element name="shipto">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="name" type="xs:string"/>
            <xs:element name="address" type="xs:string"/>
            <xs:element name="city" type="xs:string"/>
            <xs:element name="country" type="xs:string"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="item" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="title" type="xs:string"/>
            <xs:element name="note" type="xs:string" minOccurs="0"/>
            <xs:element name="quantity" type="xs:positiveInteger"/>
            <xs:element name="price" type="xs:decimal"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="orderid" type="xs:string" use="required"/>
  </xs:complexType>
</xs:element>

</xs:schema>

просьба помочь мне, я действительно не знаю как и с чего начать.

4 ответов


этот ответ одинаково для вас, а также @Alex, @Michael и @42. Я иллюстрирую его с помощью Excel 2010, поэтому, если вы находитесь в другой версии, я оставлю вам возможность внести необходимые изменения.

во-первых, убедитесь, что вкладка Разработчик показывает (нажмите вкладку Файл, Параметры).

Excel 2010 options for Developer tab

теперь вам нужно создать источник XML из вашего XSD: перейдите на вкладку Разработчик; в группе XML переключите кнопку Источник, чтобы показать задачу источник Xml панели; нажмите кнопку карты XML.

Excel showing key UI elements for creating an XML map

Нажмите кнопку Добавить в приглашении; укажите файл XSD; затем нажмите кнопку ОК, чтобы вернуться к главному экрану.

Excel showing XSD loaded in an XML map

затем вы можете перетащить свой shipOrder в ячейку на листе, чтобы закрепить сгенерированную сопоставленную таблицу.

Excel showing mapped XSD

далее, Вы можете использовать импорт, чтобы получить ваши данные XML в электронную таблицу, и экспорт, чтобы получить его. Есть несколько дополнительные вещи, на которые стоит обратить внимание; Читать эта статья на сайте Microsoft; обратите особое внимание на проблемы с экспортом XML-данных (ошибка XML-карты в моей книге не экспортируются). Это из-за 1 ко многим кардинальности между shiporder и item. Вы можете попытаться справиться с этим, используя сопоставленные диапазоны — я оставлю все это на вас. Лучше всего было бы вам прочитать онлайн-справку для раздела разработчика XML…


на MS Excel ->File ->Open. Выберите файл xsd.

вам будет предложено, как вы хотели бы открыть файл. Вы можете выбрать опцию «в качестве таблицы XML». Сохраните файл в формате Excel.

2

автор: Ashwath Padmashali


вы можете сохранить файл как XML-файл, а затем открыть его в Excel и открыть как «книгу только для чтения» при появлении запроса. Однако он не будет в хорошем формате, но, по крайней мере, все данные (вместе с XML-дорожки в виде столбцов) будет там.

вы можете редактировать данные по мере необходимости. Все остальное потребует некоторой обработки.


выберите весь текст XSD в текстовом редакторе, скопируйте его в буфер обмена, щелкните ячейку в электронной таблице Excel и выполните вставку. Ваши данные XSD теперь будут в вашей электронной таблице.

Это будет не очень полезный формат, но вы не сказали нам, как вы хотите, чтобы электронная таблица выглядела, и мне трудно представить себе формат, который б быть полезным.


  • Video Tutorial




    VIEW TUTORIAL

    Data Mapper - XML to JSON

    Data Mapper — XML to JSON


  • Free Online XML Tools

    1. XML Formatter
    2. XML Validator
    3. XML Validator (XSD)
    4. XML Validator (RelaxNG)
    5. XML Validator (Schematron)
    6. XML to XSD
    7. XSD to XML
  • Free Online Code Generation Tools

    1. XSD to C#
    2. XSD to VB.Net
  • Free Online JSON Tools

    1. JSON Formatter
    2. JSON Validator
    3. JSON Validator
    4. JSON to JSON Schema
    5. JSON Schema to JSON

  • XML Schema Tutorials

    • Elements and Attributes
    • Conventions and Recommendations
    • Extending Existing Types
    • Namespaces
    • Groups and Any Types

Creates a sample XML document from an XML Schema (XSD).

Download Liquid Studio
Access the online tools directly from your desktop.
Download Free Liquid Studio Community Edition Now!

XML Schema (XSD)

Options

Add any elements content
Add any attribute content
Max optional item depth
Force Option Items Depth
Indent character
Indent depth
Indent attributes
Seed

Root XML Element :

Generated Sample XML Document


WORKING

Document Valid

Errors

Severity Location Filename Message
       

Please Note:
All data is stored in our log files and periodically deleted, if you have sensitive data, please Download the Free Liquid Studio Community Edition and use the tools directly from your desktop.

More Editors and Tools




FEATURE DETAILS

Graphical XSD Editor

Graphical XML Schema Editor(XSD)




FEATURE DETAILS

Graphical XML Editor

Graphical XML Editor




FEATURE DETAILS

Graphical JSON Schema Editor

Graphical JSON Schema Editor




FEATURE DETAILS

JSON Editor

JSON Editor




FEATURE DETAILS

Liquid Data Mapper

Data Mapper




FEATURE DETAILS

Liquid Data Diff Viewer

Data Diff Viewer




FEATURE DETAILS

XML Data Binder

XML Data Binder (C++, Java, VB6)




FEATURE DETAILS

XML Objects

XML Objects (C#, VB .Net)

Like what you see? Try Liquid Studio Free
Free Trial

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

1
branch

0
tags


Code

  • Use Git or checkout with SVN using the web URL.

  • Open with GitHub Desktop

  • Download ZIP

Latest commit

Files

Permalink

Failed to load latest commit information.

Type

Name

Latest commit message

Commit time

NIEM-XSD-to-Excel-Converter

Lastest version v2.3

as of 2/04/2016

Author: Thomas Rosales

Build using Windows Forms in C#. This tool is used to generate Excel Spreadsheets from NIEM (XSD) schemas. Compactible with extension, exchange, subset and codelist schemas.

It currently organized the schema contents into excel columns :

  • Class Name (Extension Class)
  • Element Name
  • Element Type
  • Documentation*
  • Source(opcional)*

#####*Schema Design:
-In order for the tool to capture the Documentation and Source correctly, an element should have a separate documentation tag for Documentation and another one for Source.

Important!: The source documentation must start with «Source:» (case sensitive)

Example:

  <xsd:element abstract="false" name="ProgramType" nillable="false" type="niem-xsd:string">
    <xsd:annotation>
      <xsd:documentation>Source: North Dakota</xsd:documentation>
      <xsd:documentation>Referral Type	Indicator of what system is sending this referral to STARS</xsd:documentation>
    </xsd:annotation>
  </xsd:element>

####Instructions:

  • Run exe (no installation required)
  • Press «Select NIEM XSD» button and choose NIEM schema file
  • Press «Convert To Excel» button.
  • Wait for operation to finish (should be quick)
  • Once done the spreadsheet will appear in the same directory as the schema selected.

####Disclamer:

  • This tool should be taken lightly. Once the spreadsheet is generated, it needs to be reviewed manually to make sure all elements were included. The tool does its best to capture everything inside the schema.

####Download Link:

  • https://github.com/Thwar/NIEM-XSD-to-Excel-Converter/blob/master/NIEMXML/App/NIEMXML.exe?raw=true

####Changes:

#####v2.3

  • Extension class now shows for simpleContent tags inside complexContent classes.

#####v2.2

  • Fixed no sequence errors
  • Modified file output process and message box
  • Tool now captures name and ref element attributes
  • Fixed cosmetic spreadsheet background color
  • Added schema definition
  • Source is now allowed without having description field.
  • Class now supports source definitions.

#####v2.0

  • Embeded DLLs for portability.
  • Faster processing. No longer requires Excel.
  • Better error catching.
  • Spreadsheet redesign
  • Added Source column

Добавить это приложение в закладки

Нажмите Ctrl + D, чтобы добавить эту страницу в избранное, или Esc, чтобы отменить действие.

Отправьте ссылку для скачивания на

Отправьте нам свой отзыв

Ой! Произошла ошибка.

Недопустимый файл. Убедитесь, что загружается правильный файл.

Ошибка успешно зарегистрирована.


Вы успешно сообщили об ошибке. Вы получите уведомление по электронной почте, когда ошибка будет исправлена.

Нажмите эту ссылку, чтобы посетить форумы.

Немедленно удалите загруженные и обработанные файлы.

Вы уверены, что хотите удалить файлы?

Введите адрес

Понравилась статья? Поделить с друзьями:
  • Конвертер xps в excel
  • Конвертер sig в word онлайн
  • Конвертер mp3 в word онлайн
  • Конвертер xlsx excel в xls excel
  • Конвертер qrp в excel онлайн