📄 XML 转 YAMLXML to YAML
把 XML 转成 YAML(属性加 @ 前缀)。Convert XML to YAML (attributes prefixed with @).
使用说明与常见问题How-to & FAQ
「XML 转 YAML」是什么?What is the XML to YAML tool?
把 XML 转成 YAML(属性加 @ 前缀)。Convert XML to YAML (attributes prefixed with @).
如何使用「XML 转 YAML」?How do I use the XML to YAML tool?
在「XML 转 YAML」中,先在上方输入或粘贴内容,然后点击「转换」、「复制」按钮即可。In the XML to YAML: Type or paste your input above, then click "Convert", "Copy".
依赖什么库?Which library does it use?
XML 由浏览器自带的 DOMParser 解析,再用 js-yaml 输出 YAML。属性名会加上 @ 前缀,同名子元素会合并为列表。The XML is parsed with the browser's built-in DOMParser and the YAML is written with js-yaml. Attribute names get an @ prefix, and repeated child elements become a list.
代码或数据会被上传吗?Is my code or data uploaded?
不会。「XML 转 YAML」完全用 JavaScript 在本地运行,适合处理含有密钥、内部接口等敏感内容的数据。No. The XML to YAML runs entirely in local JavaScript, so it is safe for data containing keys or internal endpoints.
「XML 转 YAML」免费吗?需要注册吗?Is the XML to YAML free? Do I need an account?
「XML 转 YAML」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The XML to YAML is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.