@@ -31,14 +31,14 @@ Node-xml provides a SAX2 parser interface that can take a string, file.
31
31
32
32
#Parse#
33
33
34
- parser.parseString(string)
34
+ ## parser.parseString(string)##
35
35
36
36
Parse an in memory string
37
37
* return: boolean. true if no errors, false otherwise
38
38
* Arguments
39
39
* string - a string representing the document to parse
40
40
41
- parser.parseFile(filename)
41
+ ## parser.parseFile(filename)##
42
42
43
43
Parse a file
44
44
* return: boolean. true if no errors, false otherwise
@@ -47,15 +47,15 @@ Parse a file
47
47
48
48
#Callbacks#
49
49
50
- parser.onStartDocument(function() {})
50
+ ## parser.onStartDocument(function() {})##
51
51
52
52
Called at the start of a document
53
53
54
- parse.onEndDocument(function() {})
54
+ ## parse.onEndDocument(function() {})##
55
55
56
56
Called at the end of the document parse
57
57
58
- parser.onStartElementNS(function(elem, attrs, prefix, uri, namespaces) {})
58
+ ## parser.onStartElementNS(function(elem, attrs, prefix, uri, namespaces) {})##
59
59
60
60
Called on an open element tag
61
61
* Arguments
@@ -65,39 +65,39 @@ Called on an open element tag
65
65
* uri - the namespace URI of the element
66
66
* namespaces - an array of arrays: [[prefix, uri], [prefix, uri]]
67
67
68
- parser.onEndElementNS(function(elem, prefix, uri) {})
68
+ ## parser.onEndElementNS(function(elem, prefix, uri) {})##
69
69
70
70
Called at the close of an element
71
71
* Arguments
72
72
* elem - a string representing the element name
73
73
* prefix - a string representing the namespace prefix of the element
74
74
* uri - the namespace URI of the element
75
75
76
- parser.onCharacters(function(chars) {})
76
+ ## parser.onCharacters(function(chars) {})##
77
77
78
78
Called when a set of content characters is encountered
79
79
* Arguments
80
80
* chars - a string of characters
81
81
82
- parser.onCdata(function(cdata) {})
82
+ ## parser.onCdata(function(cdata) {})##
83
83
84
84
Called when a CDATA is encountered
85
85
* Arguments
86
86
* cdata - a string representing the CDATA
87
87
88
- parser.onComment(function(msg) {})
88
+ ## parser.onComment(function(msg) {})##
89
89
90
90
Called when a comment is encountered
91
- * Arguments
92
- * msg - a string representing the comment
91
+ * Arguments
92
+ * msg - a string representing the comment
93
93
94
- parser.onWarning(function(msg) {})
94
+ ## parser.onWarning(function(msg) {})##
95
95
96
96
Called when a warning is encountered
97
- * Arguments
98
- * msg - a string representing the warning message
97
+ * Arguments
98
+ * msg - a string representing the warning message
99
99
100
- parser.onError(function(msg) {})
100
+ ## parser.onError(function(msg) {})##
101
101
102
102
Called when an error is encountered
103
103
* Arguments
0 commit comments