FILE FORMAT GUIDE
XML File (.XML): Markup, Encoding & Opening
An XML file organizes text and data using elements and attributes. The extension alone does not identify an application's document vocabulary. An XML-aware editor can inspect markup; displaying the intended business document or importing settings still requires software that understands the vocabulary and any associated schema.
Check supported header evidence locally. Identification is not file validation or a malware scan.
Analyze a file locallyQuick facts
- Extension
- .xml
- Format
- Extensible Markup Language
- Category
- data
- MIME type
- application/xml, text/xml
- Standard / developer
- W3C
- Open with
- Visual Studio Code with Red Hat XML support
What is XML?
XML 1.0 defines well-formed markup, including nesting and a document element. Schema or DTD validation adds rules beyond well-formedness. Encoding must agree with declarations and transport information. The XML declaration is not mandatory in every document, so a literal declaration prefix is not a universal identification signature.
- Represent structured documents with elements and attributes
- Edit markup with schema-aware assistance
How to open XML
Visual Studio Code with Red Hat XML supportDesktop editor and extension
Open the XML document in VS Code with the Red Hat XML extension installed. Inspect syntax diagnostics; associate the appropriate schema or catalog for vocabulary-specific assistance. For untrusted files, review external-resource downloads and entity-resolution settings before enabling additional resources. Editing markup does not render every XML-based application document.
Technical details
- Signature
- Not reviewed
- Encoding
- XML processors support UTF-8 and UTF-16; declarations and transport may identify other encodings
- Container
- Not reviewed
- Compression
- Not reviewed
Things to check
- Well-formedness and schema validity are different checks.
- Editor external-resource downloads and entity resolution are separate configurable behaviors.
Related formats
- JavaScript Object Notation
An alternative structured interchange format based on objects and arrays rather than markup.
- YAML
A serialization alternative for mappings and sequences, with different schema and presentation rules.
- TOML
A configuration-oriented alternative when the target application accepts TOML tables instead of XML elements.
Sources & review
Fact review: 2026-09-18. Unknown fields are not inferred from the file extension.