简体   繁体   English

根据自定义输入使用 python 创建 xml 文件

[英]create xml file using python based on custom input

在此处输入图像描述

Hello Experts,您好专家,

I need to automate xml file creation based on above table (tag and value).我需要根据上表(标签和值)自动创建 xml 文件。

Can anybody guide me which approach I should take?谁能指导我应该采取哪种方法?

example for for xml if implementing only 1st row如果仅实现第一行,例如 xml

<Document>
    <Header>
        <RunID>Value 1</RunID>
    </Header>
</Document>

I'm not experienced in XML stuff but there is a python library called xml which might be helpful.我在 XML 方面没有经验,但有一个名为 xml 的 python 库可能会有所帮助。 Again, i have no experience with xml files but that might be a good first place to look.同样,我对 xml 文件没有经验,但这可能是一个很好的首选。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM