Skip to content

Công cụ định dạng & Mã

Công cụ định dạng & xác thực XML

Công cụ định dạng, làm đẹp và xác thực XML trực tuyến miễn phí. In đẹp XML lộn xộn, thu gọn nó thành một dòng nhỏ gọn hoặc kiểm tra lỗi cú pháp. Chạy hoàn toàn trong trình duyệt của bạn.

Runs in your browser
XML formatter & validator
lines: 0chars: 0size: 0 B
XML · UTF-8 · 2-space indent

Ghi chú của biên tập viên

Understanding · Whitespace, with intent.

Chương phân tích chuyên sâu này hiện chỉ có sẵn bằng tiếng Anh. Công cụ chuyển đổi ở trên hoạt động bằng ngôn ngữ của bạn; bài viết giải thích dài chưa được dịch.

Các câu hỏi thường gặp

Quick answers.

What XML features does this support?

Attributes, nested elements, mixed content, CDATA blocks, comments, processing instructions and the XML declaration are all preserved. The formatter uses the browser's native DOMParser so anything your browser accepts is accepted here.

What's the difference between Beautify and Minify?

Beautify adds indentation and line breaks for readability. Minify strips whitespace between tags while keeping text-node content intact — good for reducing payload size before sending XML over the wire.

Does Validate catch every XML error?

It catches well-formedness errors (unclosed tags, mismatched attributes, stray ampersands). It does not validate against a DTD or XSD — that's a separate schema-validation step.

Is my XML sent anywhere?

No. Everything runs in your browser — the parser, the formatter, the minifier. Your payload never leaves the page.

Mọi người cũng tìm kiếm

Công cụ liên quan

More in this room.

Xem tất cả trong Công cụ định dạng & Mã