Tuesday, 18 June 2019

Mozilla Firefox - Fix Error - XML Parsing Error junk after document element with comments

Watch this example on YouTube


 
to fix it replace

<name>
    <first>Bob</first>
    <last>Doe</last>
</name>
<name>
    <first>John</first>
    <last>Lennon</last>
</name>

with

<root>
<name>
    <first>Bob</first>
    <last>Doe</last>
</name>
<name>
    <first>John</first>
    <last>Lennon</last>
</name>
</root>

No comments:

Post a Comment