27 chars · 1 line
Waiting for input
27 chars · 1 line
Waiting for input
XML processing-instruction syntax
The sample opens <?build inside the root but never emits ?> before </root>. The parser continues treating later characters as processing-instruction content until it finds the required terminator. This tool is free to use. No account or payment is required.
Last updated
A processing instruction is not an element, so </...> cannot close it. The exact ?> terminator is required before the parser can return to ordinary XML element syntax.
Close the processing instruction before the root closing tag.
<root><?build target</root><root><?build target?></root>Common questions
It ends with ?>.
It uses similar syntax but is governed by special XML declaration placement rules.
Yes, when they are well formed and the consuming format permits them.
Debugging a specific XML issue? Browse XML troubleshooting.