This XML is not well-formed. It contain syntax error because character &
has a special meaning. If you need to insert if as a symbol itself change it with &
. After parsing it will be replaced back to usual &
.
The same rule applies to <
- it should be replaced with <
.
<p>this is a test <gt; xml & </p>
This is the general rule for all XML parsers and encoders. Any other XML system awaits similar behavior.