Guides

Preserve mixed XML text and child order

Follow these steps using a local file and keep the original.

Preserve mixed XML text and child order
Actual local tool workspace with a synthetic sample.

Prepare the example

Create disposable test input with the exact content below (UTF-8 text unless marked hex). For duplicate filenames, save the two files in separate folders.

mixed.xml
<p>before<b>bold</b>after</p>

Create XML <p>before<b>bold</b>after</p>.

Run the workflow

  1. Open the related tool below and load the prepared file(s).
  2. Convert to structured JSON and inspect the order of text, child b and following text.

Verified example result

This example was reproduced in Chrome on 2026-12-04 using FileTypeKit 0.9.0 and synthetic data. The expected result or expected refusal was checked; this does not establish support for every real file.

The downloaded output was checked against the expected properties below.

Example output
mixed.json
Observed size
330 bytes
SHA-256
40c708e466122ce25c2c4fec6e64d6078dc5a911e6c1b27f83c194909d9db82f

This digest describes the tested output; other encoders or versions may produce different bytes. Verify the expected properties, not only the digest.

Limitations and what to verify

This is an explicit tree representation, not a flat object mapping.

Open related tool