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
var baseDocBody = """
Some text in body
Some more text in body
"""
var baseDocBodyTree = parseXml(baseDocBody)
let initialDocBase = """
Some text
Some more text
Some text in body before replace
Some more text in body before replace
"""
var initialDocBaseTree = parseXml(initialDocBase)
proc test_replace() =
var testDoc = initialDocBaseTree
testDoc.replace(1, @[baseDocBodyTree])
echo $testDoc
test_replace()