# XML documet structures Error

**URL:** <https://forum.inductiveautomation.com/t/xml-documet-structures-error/1379>\
**Category:** Archived Topics\
**Created:** [November 16, 2009, 6:34pm UTC](https://forum.inductiveautomation.com/t/xml-documet-structures-error/1379 "2009-11-16T18:34:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![david\_mccutchen](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@david\_mccutchen](https://forum.inductiveautomation.com/u/david_mccutchen)\
**Post date:** [November 16, 2009, 6:34pm UTC](https://forum.inductiveautomation.com/t/xml-documet-structures-error/1379/1 "2009-11-16T18:34:49Z")

</div>

Periodically we experience an “XML document structures must start and end within the same entity” fault. This causes tags to go stale, and to get rid of the fault requires a gateway restart. Any Ideas?

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [November 19, 2009, 5:02pm UTC](https://forum.inductiveautomation.com/t/xml-documet-structures-error/1379/2 "2009-11-19T17:02:51Z")

</div>

That error message means that the Gateway experienced an unexpected exception while sending a response to the client - hence the XML error message in the Client (the response was garbled).

The Gateway logs will probably shed some light on the true cause of the problem.
