# Problems at working with bad XML-Files

**URL:** <https://forum.kirupa.com/t/problems-at-working-with-bad-xml-files/316950>\
**Category:** Uncategorized\
**Created:** [December 6, 2010, 6:51pm UTC](https://forum.kirupa.com/t/problems-at-working-with-bad-xml-files/316950 "2010-12-06T18:51:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![klappspaten](https://avatars.discourse-cdn.com/v4/letter/k/59ef9b/32.png) [@klappspaten](https://forum.kirupa.com/u/klappspaten)\
**Post date:** [December 6, 2010, 6:51pm UTC](https://forum.kirupa.com/t/problems-at-working-with-bad-xml-files/316950/1 "2010-12-06T18:51:59Z")

</div>

Like written in the title, i’m not able to work with badly written websites. Loading them with an Loader-class is working well - but i can’t create a new XML(e.target.data) because i got XML error-messages. And because it’s not my xml code, i cant fix myself.

So fixing bad code isn’t an option. Of cause i could work with the data as a string… but i hope the is some easier way than manually writing my own XML class. Maybe there is a way to ignore those errors - but i’ve searched some hours and didn’t find a clue for this. So i registered here and hope some one of you knows a nice answer how to handle with bad work of others. :puzzled:
