@@ -76,11 +76,10 @@ <h1 style="color:white;">Fast XML Parser</h1>
7676 < div class ="row ">
7777 < div class ="col-md-8 " style =" color: white; ">
7878 < input type ="checkbox " id ="attrNodeName "> Group all the attributes as properties of given name. < br >
79- < input type ="checkbox " id ="ignoreTextNodeAttr " checked ="true "> Ignore attributes from parsing < br >
79+ < input type ="checkbox " id ="ignoreAttributes " checked ="true "> Ignore attributes from parsing < br >
8080 < input type ="checkbox " id ="ignoreNameSpace "> Remove namespace string from tag and attribute names. < br >
81- < input type ="checkbox " id ="ignoreRootElement "> Remove root element from parsed JSON. < br >
82- < input type ="checkbox " id ="textNodeConversion " checked ="true "> Parse the value of text node to float or integer.< br >
83- < input type ="checkbox " id ="textAttrConversion "> Parse the value of an attribute to float or integer.< br >
81+ < input type ="checkbox " id ="parseNodeValue " checked ="true "> Parse the value of text node to float or integer.< br >
82+ < input type ="checkbox " id ="ParseAttributeValue "> Parse the value of an attribute to float or integer.< br >
8483 < input type ="checkbox " id ="arrayMode "> Put the value(s) of a tag or attribute in an array. < br >
8584 < button id ="submit " class ="btn btn-primary " type ="button "> Parse to JSON</ button >
8685 </ div >
@@ -127,15 +126,13 @@ <h1 style="color:white;">Fast XML Parser</h1>
127126
128127 function buildParsingConfig ( ) {
129128 var config = {
130- attrPrefix : "" ,
129+ attributeNamePrefix : "" ,
131130 attrNodeName : $ ( "#attrNodeName" ) . prop ( "checked" ) ? "@" : false ,
132131 textNodeName : "#text" ,
133- ignoreNonTextNodeAttr : $ ( "#ignoreTextNodeAttr" ) . prop ( "checked" ) ,
134- ignoreTextNodeAttr : $ ( "#ignoreTextNodeAttr" ) . prop ( "checked" ) ,
132+ ignoreAttribute : $ ( "#ignoreAttribute" ) . prop ( "checked" ) ,
135133 ignoreNameSpace : $ ( "#ignoreNameSpace" ) . prop ( "checked" ) ,
136- ignoreRootElement : $ ( "#ignoreRootElement" ) . prop ( "checked" ) ,
137- textNodeConversion : $ ( "#textNodeConversion" ) . prop ( "checked" ) ,
138- textAttrConversion : $ ( "#textAttrConversion" ) . prop ( "checked" ) ,
134+ parseNodeValue : $ ( "#parseNodeValue" ) . prop ( "checked" ) ,
135+ parseAttributeValue : $ ( "#parseAttributeValue" ) . prop ( "checked" ) ,
139136 arrayMode : $ ( "#arrayMode" ) . prop ( "checked" )
140137 } ;
141138
0 commit comments