メインコンテンツへスキップ
Z

What is XML?

XML (eXtensible Markup Language) is a markup language for encoding structured data in a text format using nested, custom tags. It supports attributes, namespaces and schema validation (XSD/DTD), and is used for documents, configuration, web feeds (RSS) and enterprise data exchange.

XML wraps data in nested, self-describing tags you define yourself, with optional attributes on elements and namespaces to avoid name clashes. A schema (XSD or DTD) can enforce structure and types.

Once dominant for web services (SOAP) and data interchange, XML is now common for documents (DOCX, SVG), feeds (RSS/Atom) and configuration. JSON has largely replaced it for web APIs.

XML tools

よくある質問

ヘッダーにスペースや特殊文字が含まれている場合はどうなりますか?

XML要素名にはこれらの文字を使用できないため、自動的にアンダースコアに置き換えられます。数字で始まるヘッダーには先頭に`_`が付加されます。

要素の代わりに属性を使うなど、別のXML構造にしたい場合は?

まず<a class="text-brand-600 hover:underline" href="/csv-to-json">CSV to JSON</a>でCSVをJSONに変換し、JSONを編集してから、属性プレフィックスを指定できる<a class="text-brand-600 hover:underline" href="/json-to-xml">JSON to XML</a>を使用してください。

出力結果をさらに整形(pretty-print)することはできますか?

出力はすでにインデント済みです。別のインデント設定にしたい場合や、圧縮(minify)したい場合は<a class="text-brand-600 hover:underline" href="/xml-formatter">XML Formatter</a>をご利用ください。