discard """
output: '''
Some text
Some more text
Some text in body
Some more text in body
'''
"""
# Test xmltree add/insert/delete/replace operations
import xmlparser
import xmltree
let initialDocBase = """
Some text
Some more text
MORE TEXT
MORE TEXT Some more text
MORE TEXT
MORE TEXT Some more text
Some text in body
Some more text in body
"""
var initialDocBaseTree = parseXml(initialDocBase)
proc test_delete() =
var testDoc = initialDocBaseTree
testDoc.delete(1..2)
echo $testDoc
test_delete()