Description
oneListGroup option seems to have no effect and produces cdata items errors
Input
Code
configuration
const builder = new XMLBuilder({
processEntities: true,
ignoreAttributes : false,
attributeNamePrefix: '$',
textNodeName: '_content',
cdataPropName: '_cdata',
suppressBooleanAttributes: false,
oneListGroup: true
});
json data
{
"table": {
"caption": "Table caption",
"row": [
[
{
"cell": "cell 1"
},
{
"cell": "cell 2"
},
{
"cell": "cell 3"
}
],
[
{
"cell": "cell 3"
},
{
"cell": "cell 4"
},
{
"cell": "cell 5"
}
]
]
}
}
Output
<?xml version="1.0"?>
<table>
<caption>Table caption</caption>
<row>
<0>
<cell>cell 1</cell>
</0>
<1>
<cell>cell 2</cell>
</1>
<2>
<cell>cell 3</cell>
</2>
</row>
<row>
<0>
<cell>cell 3</cell>
</0>
<1>
<cell>cell 4</cell>
</1>
<2>
<cell>cell 5</cell>
</2>
</row>
</table>
In addition, adding the oneListGroup option, also cdata processing fails:
<descr>
<_cdata><p>some text</p></_cdata>
</descr>
expected output
<table>
<caption>Composizione del MOL</caption>
<row>
<cell>cell 1</cell>
<cell>cell 2</cell>
<cell>cell 3</cell>
</row>
<row>
<cell>cell 4</cell>
<cell>cell 5</cell>
<cell>cell 6</cell>
</row>
</table>
Would you like to work on this issue?
Bookmark this repository for further updates. Visit SoloThought to know about recent features.
Description
oneListGroupoption seems to have no effect and producescdataitems errorsInput
Code
configuration
json data
Output
In addition, adding the
oneListGroupoption, also cdata processing fails:expected output
Would you like to work on this issue?
Bookmark this repository for further updates. Visit SoloThought to know about recent features.