attrkey | Prefix that is used to access the attributes. Version 0.1 default was @. |
charkey | Prefix that is used to access the character content. Version 0.1 default was #. |
explicitCharkey | Determines whether or not to use a charkey prefix for elements with no attributes. |
trim | Trim the whitespace at the beginning and end of text nodes. |
normalizeTags | Normalize all tag names to lowercase. |
normalize | Trim whitespaces inside text nodes. |
explicitRoot | Set this if you want to get the root node in the resulting object. |
emptyTag | what will the value of empty nodes be. |
explicitArray | Always put child nodes in an array if true; |
ignoreAttrs | Ignore all XML attributes and only create text nodes. |
mergeAttrs | Merge attributes and child elements as properties of the parent, instead of keying attributes off a child attribute object. |
validator | You can specify a callable that validates the resulting structure somehow, however you want. See unit tests for an example. |
xmlns | Give each element a field usually called '$ns' (the first character is the same as attrkey) that contains its local name and namespace URI. |
explicitChildren | Put child elements to separate property. Doesn't work with mergeAttrs = true. |
childkey | Prefix that is used to access child elements if explicitChildren is set to true. |
preserveChildrenOrder | Modifies the behavior of explicitChildren so that the value of the "children" property becomes an ordered array. |
charsAsChildren | Determines whether chars should be considered children if explicitChildren is on. |
includeWhiteChars | Determines whether whitespace-only text nodes should be included. |
async | Should the callbacks be async. |
strict | Set sax-js to strict or non-strict parsing mode. |
attrNameProcessors | Allows the addition of attribute name processing functions. |
attrValueProcessors | Allows the addition of attribute value processing functions. |
tagNameProcessors | Allows the addition of tag name processing functions. |
valueProcessors | Allows the addition of element value processing functions. |
Comments
Related