XML · Бесплатно · На устройстве

Corrupt an XML File Online

Corrupt an .xml file online for free. Breaks the declaration, tag nesting and encoding so XML parsers reject the document as not well-formed.

  • Без загрузки на сервер
  • Без ограничения размера
  • Без регистрации

Испортите свой файл XML

Настроено под .xml, .xsd, .rss, .plist, и так же работает с любым другим форматом.

100% на устройстве
Перетащите файлы сюда или выберите Любой формат, любой размер, несколько файлов сразу
Уровень порчи

Выполняется…0%
Готово к загрузке

Почему файлы XML трудно испортить как следует

XML parsers are strict about well-formedness but tolerant about a great deal else. The reliable way to break an XML document is to attack the three things every parser checks first: the declaration, the encoding, and the balance of the tag tree.

Что разрушает этот инструмент

  • The XML declaration. The opening <?xml version…?> processing instruction is destroyed, so encoding and version cannot be established.
  • Tag balance. Angle brackets and tag names are overwritten throughout, leaving elements permanently unclosed.
  • Encoding validity. Invalid UTF-8 sequences make the document fail before the parser reaches the grammar.
  • The root element. The closing bytes are destroyed, so the document root is never terminated.

Что вы увидите после

ПриложениеПоведение
Browsers"This page contains the following errors: not well-formed" with the offending line highlighted.
Python ElementTreeRaises ParseError: not well-formed (invalid token).
Java / .NET parsersThrow SAXParseException or XmlException on the first token.
XML editorsRefuse to load or open the file in plain-text mode with errors flagged.

Частые причины это сделать

  • Testing an XML ingestion endpoint against malformed input.
  • Verifying that a SOAP or RSS consumer surfaces parse failures properly.
  • Checking a configuration loader refuses a damaged file rather than starting with defaults.
  • Producing not-well-formed fixtures for a conformance test suite.

Как испортить файл XML

  1. Перетащите файл .xml в поле выше или нажмите, чтобы выбрать.
  2. Оставьте уровень Standard, если вам не нужно частичное повреждение (Light) или победа над программами восстановления (Heavy).
  3. Нажмите Испортить файл. Обработка идёт на вашем устройстве, поэтому заканчивается почти мгновенно.
  4. Скачайте результат. По умолчанию он сохраняет исходное имя файла и длину в байтах.

Вопросы о XML

Does this break XML schema validation too?

It never gets that far. Schema validation happens after parsing, and the document fails well-formedness first.

Will it work on SVG, RSS or plist files?

Yes. All are XML underneath and use the same profile. There is also a dedicated SVG corrupter.

Can I keep it looking like valid XML?

Light level preserves most of the structure, so the file still looks like XML at a glance while failing to parse.

Is the file uploaded anywhere?

No. All processing happens in your browser and nothing is transmitted.

Пользуйтесь ответственно. Files Corrupter создан для тестирования ПО, контроля качества, исследований, обучения и преподавания. Сдача намеренно испорченного файла, чтобы выдать работу за выполненную, может нарушать правила вашего учебного заведения или работодателя. Вы отвечаете за то, как используете результат. Смотрите наш отказ от ответственности.

Другие инструменты для code & data

Все инструменты порчи файлов