forked from Leonidas-from-XIV/node-xml2js
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefaults.coffee
More file actions
73 lines (72 loc) · 1.91 KB
/
defaults.coffee
File metadata and controls
73 lines (72 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
exports.defaults = {
"0.1":
explicitCharkey: false
trim: true
# normalize implicates trimming, just so you know
normalize: true
# normalize tag names to lower case
normalizeTags: false
# set default attribute object key
attrkey: "@"
# set default char object key
charkey: "#"
# always put child nodes in an array
explicitArray: false
# ignore all attributes regardless
ignoreAttrs: false
# merge attributes and child elements onto parent object. this may
# cause collisions.
mergeAttrs: false
explicitRoot: false
validator: null
xmlns : false
# fold children elements into dedicated property (works only in 0.2)
explicitChildren: false
childkey: '@@'
charsAsChildren: false
# include white-space only text nodes
includeWhiteChars: false
# callbacks are async? not in 0.1 mode
async: false
strict: true
attrNameProcessors: null
attrValueProcessors: null
tagNameProcessors: null
valueProcessors: null
emptyTag: ''
"0.2":
explicitCharkey: false
trim: false
normalize: false
normalizeTags: false
attrkey: "$"
charkey: "_"
explicitArray: true
ignoreAttrs: false
mergeAttrs: false
explicitRoot: true
validator: null
xmlns : false
explicitChildren: false
preserveChildrenOrder: false
childkey: '$$'
charsAsChildren: false
# include white-space only text nodes
includeWhiteChars: false
# not async in 0.2 mode either
async: false
strict: true
attrNameProcessors: null
attrValueProcessors: null
tagNameProcessors: null
valueProcessors: null
# xml building options
rootName: 'root'
xmldec: {'version': '1.0', 'encoding': 'UTF-8', 'standalone': true}
doctype: null
renderOpts: { 'pretty': true, 'indent': ' ', 'newline': '\n' }
headless: false
chunkSize: 10000
emptyTag: ''
cdata: false
}