ASObjC XML Part 3

While I’m making some progress with ASObjC there are still some mysteries.
When I open an XML with my app and save it all single linefeed in text entries are gone:

<text>
</text>
-->
<text></text>

This can be handled calling all nodes with “empty” values and replace the content by a return. But those can be several thousands.

Another thing I can’t find in the docs is how to delete a node.

Any help will be appreciated.

That sounds like the work of NSXMLDocumentTidyXML.

Use NSXMLNode's -detach method.

I don’t use that, but just had the idea that while opening the XML there is something like “options” and a number. When I’m back on my computer I will search the docs for that.

Many thanks for that Shane!