From 99088c039b1753cce0d780fb5d596896f7981bac Mon Sep 17 00:00:00 2001 From: Amit Gupta Date: Fri, 16 Feb 2018 16:49:40 +0530 Subject: [PATCH] fix demo page to set attributes options correctly --- index.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index e4a92da6..239358b5 100644 --- a/index.html +++ b/index.html @@ -80,7 +80,7 @@

Fast XML Parser

Remove namespace string from tag and attribute names.
Parse the value of text node to float or integer.
Parse the value of an attribute to float or integer.
- Put the value(s) of a tag or attribute in an array.
+ Set TagName to parse CDATA as separate property
@@ -129,11 +129,15 @@

Fast XML Parser

attributeNamePrefix : "", attrNodeName: $("#attrNodeName").prop("checked") ? "@" : false, textNodeName : "#text", - ignoreAttribute : $("#ignoreAttribute").prop("checked"), + ignoreAttributes : $("#ignoreAttributes").prop("checked"), ignoreNameSpace : $("#ignoreNameSpace").prop("checked"), parseNodeValue : $("#parseNodeValue").prop("checked"), parseAttributeValue : $("#parseAttributeValue").prop("checked"), - arrayMode : $("#arrayMode").prop("checked") + trimValues: true, //Trim string values of tag and attributes + decodeHTMLchar: false, + cdataTagName: $("#cdataTagName").val() === "" ? false : $("#cdataTagName").val(), + cdataPositionChar: "\\c" + //arrayMode : $("#arrayMode").prop("checked") }; return config;