# Strange attribute error

**URL:** <https://discourse.slicer.org/t/strange-attribute-error/30453>\
**Category:** Development\
**Tags:** python\
**Created:** [July 7, 2023, 2:37pm UTC](https://discourse.slicer.org/t/strange-attribute-error/30453 "2023-07-07T14:37:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Li](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/patrick_li/32/66178_2.png) [@Patrick\_Li](https://discourse.slicer.org/u/Patrick_Li)\
**Post date:** [July 7, 2023, 2:37pm UTC](https://discourse.slicer.org/t/strange-attribute-error/30453/1 "2023-07-07T14:37:06Z")

</div>

When testing out the WriteXML() function, I keep getting this error. It seems the node type name is too long, or something like that. Any way to resolve?

 ![Screenshot 2023-07-07 103618](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/1/318e00f2406542ed50b5cc15351ad1dbe49b82c6.png)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 8, 2023, 4:02am UTC](https://discourse.slicer.org/t/strange-attribute-error/30453/2 "2023-07-08T04:02:36Z")

</div>

The `WriteXML` method is not exposed on the Python interface because it is for internal use only (to be able to save the scene). If you want to write the content of a node to XML then you can save the scene.
