![]() ![]() ![]() ![]() sanitize: Sanitizes the following characters present in element values:.arrayNotation: XML child nodes are always treated as arrays NB: you can specify a selective array of nodes for this to apply to instead of the whole document.trim: Removes leading and trailing whitespaces as well as line terminators in element values.Coerce can be optionally defined as an object with specific methods of coercion based on attribute name or tag name, with fallback to default coercion. i.e.: numbers and booleans present in attributes and element values are converted from string to its correspondent data types. reversible: Makes the JSON reversible to XML (*).object: Returns a Javascript object instead of a JSON string.json to xml var xml = parser.toXml(json) ĪrrayNotation: false alternateTextNode: false xml to json var json = parser.toJson(xml) This module uses node-expat which will require extra steps if you want to get it installed on Windows. It does not parse the following elements: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |