Reputation: 6050
I have an XML file. It is nearly correct, but it is not.
Error on line 302211.
Extra Content at the end of the document.
I've spent literally two days trying to debug this, but the file is so big it's nearly impossible. Is there anything I can do ?
Here are the relevant lines also (I include 2 lines before the error code, the error begins on the <seg>
tag).
<tu>
<tuv xml:lang="en">
<prop type="feed"></prop>
<seg>
<bpt i="1" x="1" type="feed">
test
</bpt>
To switch on computer:
<ept i="1">
>
</ept>
Press device
<ph x="2" type="feed">
<schar _TR="123" y.io.name
</ph> or
<ph x="3" type="feed">
<schar _TR="274" y.io.name="
</ph> (Spain) twice.
</seg>
</tuv>
</tu>
Can anyone give me some pointers on finding the issue here? I am using the Notepad++ XML plugin.
Upvotes: 0
Views: 544
Reputation: 111686
Divide and conquer. Consider this sketch of a huge XML document:
<root>
<First>
<FirstChild>
<!-- Tons of descendent markup -->
</FirstChild>
<SecondChild>
<!-- Tons of descendent markup -->
</SecondChild>
</First>
<Second>
<!-- Tons of descendent markup -->
</Second>
</root>
Process of elimination:
First
element.First
element and remove Second
element.FirstChild
element. Upvotes: 3