# XmlDocument - debugging

**URL:** <https://forum.xojo.com/t/xmldocument-debugging/67851>\
**Category:** General\
**Created:** [January 8, 2022, 1:45pm UTC](https://forum.xojo.com/t/xmldocument-debugging/67851 "2022-01-08T13:45:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joost\_Rongen1](https://forum.xojo.com/user_avatar/forum.xojo.com/joost_rongen1/32/15052_2.png) [@Joost\_Rongen1](https://forum.xojo.com/u/Joost_Rongen1)\
**Post date:** [January 8, 2022, 1:45pm UTC](https://forum.xojo.com/t/xmldocument-debugging/67851/1 "2022-01-08T13:45:56Z")

</div>

Within a project I am creating XML strings using XmlDocument object.  
Works fine actually, until I make a small coding typo which only causes a runtime error. Although I have the option “Break on exceptions” switched on, in this case it often happens that my project in debugmode ends with a messagebox telling me the app crashed and has to shut down. So it doesn’t show me the line causing the error.  
I can understand that XmlDocument is actually code from elsewhere and that a crash probably cannot be intercepted at some point.  
Or, should we consider this to be a Xojo bug ?

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [January 8, 2022, 2:03pm UTC](https://forum.xojo.com/t/xmldocument-debugging/67851/2 "2022-01-08T14:03:35Z")

</div>

It should still be filed as a bug. It may be fixed in a later version of the library to which we can update.

---

<div class="post-metadata">

**Author:** ![Joost\_Rongen1](https://forum.xojo.com/user_avatar/forum.xojo.com/joost_rongen1/32/15052_2.png) [@Joost\_Rongen1](https://forum.xojo.com/u/Joost_Rongen1)\
**Post date:** [January 8, 2022, 5:19pm UTC](https://forum.xojo.com/t/xmldocument-debugging/67851/3 "2022-01-08T17:19:17Z")

</div>

FB 67243

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [January 8, 2022, 5:22pm UTC](https://forum.xojo.com/t/xmldocument-debugging/67851/4 "2022-01-08T17:22:15Z")

</div>

same here.  
I sometimes do xml stuff, and when I try to open it with xojo, I sometimes get an exception when the xml is badly made.  
but you have no clue (almost) to where the problem is .  
does a tool exists that tells you where a problem is inside an xml file?  
I tried some xml editors, but did not find one that was pinpointing error in a satisfactory way.

---

<div class="post-metadata">

**Author:** ![Jim\_Meyer](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/df788c/32.png) [@Jim\_Meyer](https://forum.xojo.com/u/Jim_Meyer)\
**Post date:** [January 8, 2022, 8:00pm UTC](https://forum.xojo.com/t/xmldocument-debugging/67851/5 "2022-01-08T20:00:17Z")

</div>

I use FireFox to open and view xml files… It formats the files so it is easy to read and if the file is not well-formed it will show you where the error is.

You can also use Oxygen ([https://www.oxygenxml.com](https://www.oxygenxml.com)) but that is not free.

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [January 8, 2022, 9:18pm UTC](https://forum.xojo.com/t/xmldocument-debugging/67851/6 "2022-01-08T21:18:43Z")

</div>

thanks Jim.  
I just tried with opera and safari: they also read xml and display the tree so you can find errors better.
