We created a Generic XML DataMapper to prevent us from making 100 nearly identical datamappers. We’re running into a problem though when there is text inside a node along with a child node.
Let’s use the following example:
Here's a table.
<table>
<tr>...</tr>
<table>
That was a table.
</data>
The DataMapper is putting the information into a json field as follows
{
"_value": "Here's a table.",
"table": {
"_value": "",
"tr": {
"_value": "..."
}
}
}
This is from using data.extract being recursively called for every node in the XML. Since the text is separated from the rest of the html it’s impossible for us to then render that HTML. Is there a way to store the raw html inside an xml node?