📰 XML 转 CSVXML to CSV Converter
把 XML 转换成 CSV:自动识别重复的记录元素,子元素和属性展开为列(嵌套用点号连接),可选分隔符,默认防止 CSV 公式注入,结果可复制到 Excel 或保存为 .csv 文件。Convert XML to CSV: repeating record elements are detected automatically, child elements and attributes become columns (nested paths joined with dots), with a choice of delimiter and CSV formula-injection protection on by default.
使用说明与常见问题How-to & FAQ
「XML 转 CSV」是什么?What is the XML to CSV Converter tool?
把 XML 转换成 CSV:自动识别重复的记录元素,子元素和属性展开为列(嵌套用点号连接),可选分隔符,默认防止 CSV 公式注入,结果可复制到 Excel 或保存为 .csv 文件。Convert XML to CSV: repeating record elements are detected automatically, child elements and attributes become columns (nested paths joined with dots), with a choice of delimiter and CSV formula-injection protection on by default.
如何使用「XML 转 CSV」?How do I use the XML to CSV Converter tool?
在「XML 转 CSV」中,把内容粘贴或输入到上方输入框,按需设置「输出分隔符」,结果会实时显示在下方,点击「复制结果」即可复制。例如输入「<x><y>1</y><y>2</y></x>」,得到「value ⏎ 1 ⏎ 2」。In the XML to CSV Converter: Paste or type into the input box, adjust "Output delimiter"; the result appears below instantly — click "Copy result" to copy it. Example: "<x><y>1</y><y>2</y></x>" → "value ⏎ 1 ⏎ 2".
记录元素是怎么识别的?How are records detected?
根元素的每个子元素算一条记录;如果根元素下只有一个包装元素(如 <data><rows><row>…),会自动向下一层。属性列以 @ 开头,嵌套子元素用点号连接(如 address.city),同名的重复子元素编号为 tag、tag_2。Each child of the root is a record; if the root only wraps one container (e.g. <data><rows><row>…), it descends automatically. Attribute columns start with @, nested elements are joined with dots (address.city), and repeated siblings become tag, tag_2.
什么是公式注入?为什么有些单元格前面多了 ' ?What is formula injection, and why do some cells start with ' ?
以 =、+、-、@ 开头的单元格在 Excel、WPS 或 Google 表格中会被当成公式执行(例如 =HYPERLINK(...) 可以伪装成链接)。默认开启的「防止公式注入」会在这类单元格前加一个单引号 ',表格软件会把它当作普通文字显示;普通负数(如 -5)不受影响。如果你确实需要公式,可以关闭此选项。Cells that start with =, +, - or @ are run as formulas by Excel, WPS or Google Sheets (=HYPERLINK(...) can disguise a link, for example). The default "Formula-injection protection" prefixes such cells with a single quote ' so spreadsheets show them as plain text; ordinary negative numbers such as -5 are left alone. Turn it off if you really want formulas.
数据会上传吗?Is my data uploaded?
不会。转换完全在浏览器本地进行,适合处理内部数据。No. Conversion happens entirely in your browser, so it is safe for internal data.
「XML 转 CSV」免费吗?需要注册吗?Is the XML to CSV Converter free? Do I need an account?
「XML 转 CSV」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The XML to CSV Converter is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.