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