如何使用Excel公式提取XSD文件中的注释ID?

时间:2018-07-31 16:40:27

标签: excel xsd

我有一个XSD文件,其中包含注释ID(即xsd:annotation.id)和描述(即xsd:documentation)的列表。我想将所有注释ID和文档提取到一个表中。我想知道是否可以编写一些excel公式来搜索和提取它们。

Below is an example.

XSD File Content:
<xsd:annotation id="disney">
<xsd:documentation>This is the Disney.</xsd:documentation>
<xsd:annotation id="disney.mickeyFamily”>
<xsd:documentation>
This is the Mickey Family.
</xsd:documentation>
<xsd:attribute name="version" use="required">
<xsd:annotation id="disney.mickeyFamily.mickeyMouse”>
<xsd:documentation>
This is the Mickey Mouse.
</xsd:documentation>
<xsd:attribute name="version" use="required">
</xsd:annotation>
</xsd:annotation>
</xsd:annotation>

预期结果:

Annotation ID                     Documentation
disney                            This is the Disney.
disney.mickeyFamily               This is the Mickey Family.
disney.mickeyFamily.mickeyMouse   This is the Mickey Mouse.

0 个答案:

没有答案