XML · Grátis · No dispositivo

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.

  • Sem envio
  • Sem limite de tamanho
  • Sem registo

Corrompa o seu ficheiro XML

Afinado para .xml, .xsd, .rss, .plist, e funciona igualmente bem com qualquer outro formato.

100% no dispositivo
Largue ficheiros aqui ou procure Qualquer formato, qualquer tamanho, vários ficheiros de uma vez
Nível de corrupção

A processar…0%
Pronto a transferir

Porque os ficheiros XML são difíceis de corromper como deve ser

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.

O que esta ferramenta destrói

  • 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.

O que vai ver a seguir

AplicaçãoComportamento
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.

Motivos comuns para fazer isto

  • 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.

Como corromper um ficheiro XML

  1. Largue o seu ficheiro .xml na caixa acima, ou clique para procurar.
  2. Deixe o nível em Standard, a menos que queira dano parcial (Light) ou precise de derrotar software de recuperação (Heavy).
  3. Prima Corromper ficheiro. O processamento decorre no seu dispositivo, por isso termina quase de imediato.
  4. Transfira o resultado. Por predefinição mantém o nome de ficheiro e o comprimento em bytes originais.

Perguntas frequentes sobre 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.

Use isto de forma responsável. O Files Corrupter foi criado para testes de software, QA, investigação, formação e ensino. Entregar um ficheiro corrompido de propósito para fazer passar trabalho por concluído pode violar as regras da sua escola ou entidade empregadora. É responsável pelo uso que faz do resultado. Consulte a nossa declaração de exoneração.

Mais ferramentas code & data

Todas as ferramentas de corrupção