📰 CSV 转 XMLCSV to XML Converter
把 CSV 表格转换成 XML:第一行作为字段名,可自定义根元素和行元素名,字段输出为子元素或属性,自动转义特殊字符。Convert CSV to XML: the header row becomes element names, with custom root/row names, fields as child elements or attributes, and proper escaping.
使用说明与常见问题How-to & FAQ
「CSV 转 XML」是什么?What is the CSV to XML Converter tool?
把 CSV 表格转换成 XML:第一行作为字段名,可自定义根元素和行元素名,字段输出为子元素或属性,自动转义特殊字符。Convert CSV to XML: the header row becomes element names, with custom root/row names, fields as child elements or attributes, and proper escaping.
如何使用「CSV 转 XML」?How do I use the CSV to XML Converter tool?
在「CSV 转 XML」中,把内容粘贴或输入到上方输入框,按需设置「输入分隔符」、「根元素」、「行元素」、「字段输出为」、「格式」,结果会实时显示在下方,点击「复制结果」即可复制。In the CSV to XML Converter: Paste or type into the input box, adjust "Input delimiter", "Root", "Row", "Fields as", "Format"; the result appears below instantly — click "Copy result" to copy it.
字段名不合法怎么办?What if a header is not a valid XML name?
XML 元素名不能以数字开头、不能含空格等字符,工具会自动把非法字符替换为下划线,并在数字开头的名称前加“_”,空表头命名为 column1、column2…XML names cannot start with a digit or contain spaces, so invalid characters become underscores, names starting with a digit get a leading "_", and empty headers become column1, column2…
引号和换行怎么处理?How are quotes and line breaks handled?
按 RFC 4180 解析:用双引号包住的字段可以包含分隔符、换行,两个双引号 "" 表示一个引号;输出时只在必要时加引号。开头的 UTF-8 BOM 会被忽略。Parsed per RFC 4180: double-quoted fields may contain delimiters and line breaks, and "" is an escaped quote; output is quoted only where needed. A leading UTF-8 BOM is ignored.
数据会上传吗?Is my data uploaded?
不会。转换完全在浏览器本地进行,适合处理内部数据。No. Conversion happens entirely in your browser, so it is safe for internal data.
「CSV 转 XML」免费吗?需要注册吗?Is the CSV to XML Converter free? Do I need an account?
「CSV 转 XML」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The CSV to XML 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.