如何使用记事本从xml文件中提取数据?

前端之家收集整理的这篇文章主要介绍了如何使用记事本从xml文件中提取数据?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个带结构的xml响应(例如,组>子组>子记录).

我想将所有childRecord.name的列表提取为单独的数据.我希望我能在记事本中快速做一些事情然后将结果粘贴到excel中.

我不确定如何编写宏可能在这种情况下会为我做这个.

<group>

  <subgroup>

    <childrecord name="abc">zzz</childrecord>

  </subgroup>

</group>
直接使用MS Excel打开XML文件.

更新

support.office.com开始:

Import an XML data file as an XML table

  1. Click Developer > Import.

    If you don’t see the Developer tab,see 07001.

  2. In the Import XML dialog Box,locate and select the XML data file (.xml) you want to import,and click Import.

    If the XML data file doesn’t refer to a schema,Excel infers the schema from the XML data file.

  3. In the Import Data dialog Box,do one of the following:

    a. Select XML table in existing worksheet to import the contents of the XML data file into an XML table in your worksheet at the specified cell location.

    b. Select XML table in new worksheet to import the contents of the file into an XML table in a new worksheet starting at cell A1. The schema of the XML data file is displayed in the XML Source task pane.

  4. If the XML data file doesn’t refer to a schema,then Excel infers the schema >from the XML data file.

  5. To control the behavior of XML data (such as data binding,format,and layout),click Properties,which displays the XML Map properties dialog Box. For example,existing data in a mapped range will be overwritten when you import data by default,but you can change this.

在LibreOffice Calc中导入XML文件

>从菜单栏中,转到数据> XML源代码……>单击浏览按钮(文件夹图标),然后从对话框中选择文件>选择所需的节点>填写Mapped单元格字段,例如A1>单击“导入”按钮.

原文链接:https://www.f2er.com/xml/292461.html

猜你在找的XML相关文章