attrkeyPrefix that is used to access the attributes. Version 0.1 default was @.
charkeyPrefix that is used to access the character content. Version 0.1 default was #.
explicitCharkeyDetermines whether or not to use a charkey prefix for elements with no attributes.
trimTrim the whitespace at the beginning and end of text nodes.
normalizeTagsNormalize all tag names to lowercase.
normalizeTrim whitespaces inside text nodes.
explicitRootSet this if you want to get the root node in the resulting object.
emptyTagwhat will the value of empty nodes be.
explicitArrayAlways put child nodes in an array if true;
ignoreAttrsIgnore all XML attributes and only create text nodes.
mergeAttrsMerge attributes and child elements as properties of the parent, instead of keying attributes off a child attribute object.
validatorYou can specify a callable that validates the resulting structure somehow, however you want. See unit tests for an example.
xmlnsGive each element a field usually called '$ns' (the first character is the same as attrkey) that contains its local name and namespace URI.
explicitChildrenPut child elements to separate property. Doesn't work with mergeAttrs = true.
childkeyPrefix that is used to access child elements if explicitChildren is set to true.
preserveChildrenOrderModifies the behavior of explicitChildren so that the value of the "children" property becomes an ordered array.
charsAsChildrenDetermines whether chars should be considered children if explicitChildren is on.
includeWhiteCharsDetermines whether whitespace-only text nodes should be included.
asyncShould the callbacks be async.
strictSet sax-js to strict or non-strict parsing mode.
attrNameProcessorsAllows the addition of attribute name processing functions.
attrValueProcessorsAllows the addition of attribute value processing functions.
tagNameProcessorsAllows the addition of tag name processing functions.
valueProcessorsAllows the addition of element value processing functions.
Comments