We backported the stack safe Node.toString to 1.x in https://github.com/scala/scala-xml/pull/684. Publishing a patch release with that change.