nlptoolkit-xmlparser 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/XmlAttribute.d.ts +1 -2
- package/dist/XmlAttribute.js +11 -13
- package/dist/XmlAttribute.js.map +1 -1
- package/dist/XmlDocument.js +49 -52
- package/dist/XmlDocument.js.map +1 -1
- package/dist/XmlElement.d.ts +0 -1
- package/dist/XmlElement.js +33 -35
- package/dist/XmlElement.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/package.json +3 -3
- package/source/XmlAttribute.ts +1 -2
- package/source/XmlElement.ts +0 -1
- package/source/index.ts +5 -0
- package/source/tsconfig.json +1 -1
- package/tsconfig.json +3 -3
- package/index.js +0 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
For Developers
|
|
2
2
|
============
|
|
3
|
-
You can also see [C++](https://github.com/starlangsoftware/
|
|
3
|
+
You can also see [C++](https://github.com/starlangsoftware/XmlParser-CPP), [C](https://github.com/starlangsoftware/XmlParser-C), [Php](https://github.com/starlangsoftware/XmlParser-Php), or [Java](https://github.com/starlangsoftware/XmlParser) repository.
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
package/dist/XmlAttribute.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export declare class XmlAttribute {
|
|
2
|
-
private name;
|
|
2
|
+
private readonly name;
|
|
3
3
|
private value;
|
|
4
4
|
/**
|
|
5
5
|
* Constructor for xml attribute. Initializes the attribute.
|
|
6
6
|
* @param name Name of the attribute
|
|
7
|
-
* @return Allocated and initialized attribute
|
|
8
7
|
*/
|
|
9
8
|
constructor(name: string);
|
|
10
9
|
getName(): string;
|
package/dist/XmlAttribute.js
CHANGED
|
@@ -10,29 +10,27 @@
|
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.XmlAttribute = void 0;
|
|
13
|
-
|
|
13
|
+
class XmlAttribute {
|
|
14
14
|
/**
|
|
15
15
|
* Constructor for xml attribute. Initializes the attribute.
|
|
16
16
|
* @param name Name of the attribute
|
|
17
|
-
* @return Allocated and initialized attribute
|
|
18
17
|
*/
|
|
19
|
-
|
|
18
|
+
constructor(name) {
|
|
20
19
|
this.name = name;
|
|
21
20
|
}
|
|
22
|
-
|
|
21
|
+
getName() {
|
|
23
22
|
return this.name;
|
|
24
|
-
}
|
|
25
|
-
|
|
23
|
+
}
|
|
24
|
+
getValue() {
|
|
26
25
|
return this.value;
|
|
27
|
-
}
|
|
28
|
-
|
|
26
|
+
}
|
|
27
|
+
setValue(value) {
|
|
29
28
|
this.value = value;
|
|
30
|
-
}
|
|
31
|
-
|
|
29
|
+
}
|
|
30
|
+
toString() {
|
|
32
31
|
return this.name + "=\"" + this.value + "\"";
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}());
|
|
32
|
+
}
|
|
33
|
+
}
|
|
36
34
|
exports.XmlAttribute = XmlAttribute;
|
|
37
35
|
});
|
|
38
36
|
//# sourceMappingURL=XmlAttribute.js.map
|
package/dist/XmlAttribute.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XmlAttribute.js","sourceRoot":"","sources":["../source/XmlAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA;
|
|
1
|
+
{"version":3,"file":"XmlAttribute.js","sourceRoot":"","sources":["../source/XmlAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,MAAa,YAAY;QAKrB;;;WAGG;QACH,YAAY,IAAY;YACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QACpB,CAAC;QAED,OAAO;YACH,OAAO,IAAI,CAAC,IAAI,CAAA;QACpB,CAAC;QAED,QAAQ;YACJ,OAAO,IAAI,CAAC,KAAK,CAAA;QACrB,CAAC;QAED,QAAQ,CAAC,KAAa;YAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QACtB,CAAC;QAED,QAAQ;YACJ,OAAO,IAAI,CAAC,IAAI,GAAG,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QACjD,CAAC;KACJ;IA5BD,oCA4BC"}
|
package/dist/XmlDocument.js
CHANGED
|
@@ -10,27 +10,27 @@
|
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.XmlDocument = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
const XmlElement_1 = require("./XmlElement");
|
|
14
|
+
const fs = require("fs");
|
|
15
|
+
const XmlAttribute_1 = require("./XmlAttribute");
|
|
16
|
+
const XmlTokenType_1 = require("./XmlTokenType");
|
|
17
|
+
const XmlTextType_1 = require("./XmlTextType");
|
|
18
|
+
class XmlDocument {
|
|
19
19
|
/**
|
|
20
20
|
* Creates an empty xml document.
|
|
21
21
|
* @param fileName Name of the xml file
|
|
22
22
|
* @return Empty xml document. Xml file is not parsed yet.
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
constructor(fileName) {
|
|
25
25
|
this.lastReadTokenType = XmlTokenType_1.XmlTokenType.XML_END;
|
|
26
26
|
this.fileName = fileName;
|
|
27
27
|
this.position = 0;
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
readChar() {
|
|
30
|
+
let ch = this.data[this.position];
|
|
31
31
|
this.position++;
|
|
32
32
|
return ch;
|
|
33
|
-
}
|
|
33
|
+
}
|
|
34
34
|
/**
|
|
35
35
|
* Reads a token character by character from xml file.
|
|
36
36
|
* @param previousChar Previous character read
|
|
@@ -38,24 +38,22 @@
|
|
|
38
38
|
* @param quotaAllowed If true, quota is allowed in the token, otherwise it is not allowed
|
|
39
39
|
* @return Token read
|
|
40
40
|
*/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
var ch = previousChar;
|
|
45
|
-
var buffer = "";
|
|
41
|
+
readToken(previousChar, extraAllowed = false, quotaAllowed = false) {
|
|
42
|
+
let ch = previousChar;
|
|
43
|
+
let buffer = "";
|
|
46
44
|
while ((ch != "'" || extraAllowed) && (ch != "\"" || quotaAllowed) && (ch != "=" || quotaAllowed) && (ch != " " || extraAllowed) && (ch != "/" || extraAllowed) && (ch != null) && (ch != '<') && (ch != '>' || quotaAllowed)) {
|
|
47
45
|
buffer += ch;
|
|
48
46
|
ch = this.readChar();
|
|
49
47
|
}
|
|
50
48
|
this.nextChar = ch;
|
|
51
49
|
return buffer;
|
|
52
|
-
}
|
|
50
|
+
}
|
|
53
51
|
/**
|
|
54
52
|
* Parses a tag like <mytag> or </mytag>
|
|
55
53
|
* @return Token read
|
|
56
54
|
*/
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
parseTag() {
|
|
56
|
+
let ch = this.readChar();
|
|
59
57
|
if (ch == "/") {
|
|
60
58
|
this.lastReadTokenType = XmlTokenType_1.XmlTokenType.XML_CLOSING_TAG_WITHOUT_ATTRIBUTES;
|
|
61
59
|
ch = this.readChar();
|
|
@@ -63,7 +61,7 @@
|
|
|
63
61
|
else {
|
|
64
62
|
this.lastReadTokenType = XmlTokenType_1.XmlTokenType.XML_OPENING_TAG_WITH_ATTRIBUTES;
|
|
65
63
|
}
|
|
66
|
-
|
|
64
|
+
let token = this.readToken(ch);
|
|
67
65
|
ch = this.nextChar;
|
|
68
66
|
if (ch == ">" && this.lastReadTokenType == XmlTokenType_1.XmlTokenType.XML_OPENING_TAG_WITH_ATTRIBUTES) {
|
|
69
67
|
this.lastReadTokenType = XmlTokenType_1.XmlTokenType.XML_OPENING_TAG_WITHOUT_ATTRIBUTES;
|
|
@@ -75,18 +73,18 @@
|
|
|
75
73
|
else {
|
|
76
74
|
return token;
|
|
77
75
|
}
|
|
78
|
-
}
|
|
76
|
+
}
|
|
79
77
|
/**
|
|
80
78
|
* Parses an attribute value like "attribute value" or 'attribute value'
|
|
81
79
|
* @return Attribute value read
|
|
82
80
|
*/
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
parseAttributeValue() {
|
|
82
|
+
let ch = this.readChar();
|
|
85
83
|
if (ch == "\"") {
|
|
86
84
|
this.lastReadTokenType = XmlTokenType_1.XmlTokenType.XML_ATTRIBUTE_VALUE;
|
|
87
85
|
return "";
|
|
88
86
|
}
|
|
89
|
-
|
|
87
|
+
let token = this.readToken(ch, true);
|
|
90
88
|
ch = this.nextChar;
|
|
91
89
|
if (ch != "\"") {
|
|
92
90
|
this.lastReadTokenType = XmlTokenType_1.XmlTokenType.XML_END;
|
|
@@ -94,13 +92,13 @@
|
|
|
94
92
|
}
|
|
95
93
|
this.lastReadTokenType = XmlTokenType_1.XmlTokenType.XML_ATTRIBUTE_VALUE;
|
|
96
94
|
return token;
|
|
97
|
-
}
|
|
95
|
+
}
|
|
98
96
|
/**
|
|
99
97
|
* Parses a tag like />
|
|
100
98
|
* @return ""
|
|
101
99
|
*/
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
parseEmptyTag() {
|
|
101
|
+
let ch = this.readChar();
|
|
104
102
|
if (ch != ">") {
|
|
105
103
|
this.lastReadTokenType = XmlTokenType_1.XmlTokenType.XML_END;
|
|
106
104
|
}
|
|
@@ -108,9 +106,9 @@
|
|
|
108
106
|
this.lastReadTokenType = XmlTokenType_1.XmlTokenType.XML_CLOSING_TAG_WITH_ATTRIBUTES;
|
|
109
107
|
}
|
|
110
108
|
return "";
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
109
|
+
}
|
|
110
|
+
getNextToken(xmlTextType) {
|
|
111
|
+
let ch = this.readChar();
|
|
114
112
|
while (ch == " " || ch == "\t" || ch == "\n") {
|
|
115
113
|
ch = this.readChar();
|
|
116
114
|
}
|
|
@@ -119,11 +117,11 @@
|
|
|
119
117
|
return this.parseTag();
|
|
120
118
|
case "\"":
|
|
121
119
|
if (xmlTextType == XmlTextType_1.XmlTextType.XML_TEXT_VALUE) {
|
|
122
|
-
|
|
120
|
+
let token = this.readToken(ch, true, true);
|
|
123
121
|
ch = this.nextChar;
|
|
124
122
|
this.lastReadTokenType = XmlTokenType_1.XmlTokenType.XML_TEXT;
|
|
125
123
|
this.position--;
|
|
126
|
-
return
|
|
124
|
+
return token;
|
|
127
125
|
}
|
|
128
126
|
else {
|
|
129
127
|
return this.parseAttributeValue();
|
|
@@ -132,11 +130,11 @@
|
|
|
132
130
|
return this.parseEmptyTag();
|
|
133
131
|
case "=":
|
|
134
132
|
if (xmlTextType == XmlTextType_1.XmlTextType.XML_TEXT_VALUE) {
|
|
135
|
-
|
|
133
|
+
let token = this.readToken(ch, true, true);
|
|
136
134
|
ch = this.nextChar;
|
|
137
135
|
this.lastReadTokenType = XmlTokenType_1.XmlTokenType.XML_TEXT;
|
|
138
136
|
this.position--;
|
|
139
|
-
return
|
|
137
|
+
return token;
|
|
140
138
|
}
|
|
141
139
|
else {
|
|
142
140
|
this.lastReadTokenType = XmlTokenType_1.XmlTokenType.XML_EQUAL;
|
|
@@ -144,11 +142,11 @@
|
|
|
144
142
|
break;
|
|
145
143
|
case ">":
|
|
146
144
|
if (xmlTextType == XmlTextType_1.XmlTextType.XML_TEXT_VALUE) {
|
|
147
|
-
|
|
145
|
+
let token = this.readToken(ch, true, true);
|
|
148
146
|
ch = this.nextChar;
|
|
149
147
|
this.lastReadTokenType = XmlTokenType_1.XmlTokenType.XML_TEXT;
|
|
150
148
|
this.position--;
|
|
151
|
-
return
|
|
149
|
+
return token;
|
|
152
150
|
}
|
|
153
151
|
else {
|
|
154
152
|
this.lastReadTokenType = XmlTokenType_1.XmlTokenType.XML_OPENING_TAG_FINISH;
|
|
@@ -158,7 +156,7 @@
|
|
|
158
156
|
this.lastReadTokenType = XmlTokenType_1.XmlTokenType.XML_END;
|
|
159
157
|
return "";
|
|
160
158
|
default:
|
|
161
|
-
|
|
159
|
+
let token;
|
|
162
160
|
if (xmlTextType == XmlTextType_1.XmlTextType.XML_TEXT_VALUE) {
|
|
163
161
|
token = this.readToken(ch, true, true);
|
|
164
162
|
ch = this.nextChar;
|
|
@@ -172,18 +170,18 @@
|
|
|
172
170
|
return token;
|
|
173
171
|
}
|
|
174
172
|
return "";
|
|
175
|
-
}
|
|
173
|
+
}
|
|
176
174
|
/**
|
|
177
175
|
* Parses given xml document
|
|
178
176
|
*/
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
177
|
+
parse() {
|
|
178
|
+
let textType = XmlTextType_1.XmlTextType.XML_TEXT_ATTRIBUTE;
|
|
179
|
+
let siblingClosed = false;
|
|
180
|
+
let token;
|
|
181
|
+
let xmlAttribute;
|
|
182
|
+
let sibling;
|
|
183
|
+
let parent;
|
|
184
|
+
let current;
|
|
187
185
|
this.data = fs.readFileSync(this.fileName, 'utf8');
|
|
188
186
|
token = this.getNextToken(textType);
|
|
189
187
|
while (this.lastReadTokenType != XmlTokenType_1.XmlTokenType.XML_END) {
|
|
@@ -269,11 +267,11 @@
|
|
|
269
267
|
}
|
|
270
268
|
token = this.getNextToken(textType);
|
|
271
269
|
}
|
|
272
|
-
}
|
|
273
|
-
|
|
270
|
+
}
|
|
271
|
+
getFirstChild() {
|
|
274
272
|
return this.root;
|
|
275
|
-
}
|
|
276
|
-
|
|
273
|
+
}
|
|
274
|
+
replaceEscapeCharacters(token) {
|
|
277
275
|
var result = token;
|
|
278
276
|
while (result.search(""") != -1) {
|
|
279
277
|
result = result.replace(""", "\"");
|
|
@@ -291,9 +289,8 @@
|
|
|
291
289
|
result = result.replace("'", "'");
|
|
292
290
|
}
|
|
293
291
|
return result;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
}());
|
|
292
|
+
}
|
|
293
|
+
}
|
|
297
294
|
exports.XmlDocument = XmlDocument;
|
|
298
295
|
});
|
|
299
296
|
//# sourceMappingURL=XmlDocument.js.map
|
package/dist/XmlDocument.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XmlDocument.js","sourceRoot":"","sources":["../source/XmlDocument.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,
|
|
1
|
+
{"version":3,"file":"XmlDocument.js","sourceRoot":"","sources":["../source/XmlDocument.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,6CAAwC;IACxC,yBAAyB;IACzB,iDAA4C;IAC5C,iDAA4C;IAC5C,+CAA0C;IAE1C,MAAa,WAAW;QASpB;;;;WAIG;QACH,YAAY,QAAgB;YAVpB,sBAAiB,GAAiB,2BAAY,CAAC,OAAO,CAAA;YAW1D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;YACxB,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAA;QACrB,CAAC;QAED,QAAQ;YACJ,IAAI,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;YACjC,IAAI,CAAC,QAAQ,EAAE,CAAA;YACf,OAAO,EAAE,CAAA;QACb,CAAC;QAED;;;;;;WAMG;QACH,SAAS,CAAC,YAAoB,EAAE,eAAwB,KAAK,EAAE,eAAwB,KAAK;YACxF,IAAI,EAAE,GAAG,YAAY,CAAC;YACtB,IAAI,MAAM,GAAG,EAAE,CAAA;YACf,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,IAAI,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,YAAY,CAAC,EAAE;g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,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;aACzC;YACD,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAC;gBAC/B,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;aACxC;YACD,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAC;gBAC/B,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;aACxC;YACD,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAC;gBACjC,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;aAC1C;YACD,OAAO,MAAM,CAAA;QACjB,CAAC;KAEJ;IAxRD,kCAwRC"}
|
package/dist/XmlElement.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export declare class XmlElement {
|
|
|
10
10
|
* Constructor for xml element. Allocates memory and initializes an element.
|
|
11
11
|
* @param name Name of the element
|
|
12
12
|
* @param parent Parent of the Xml Element
|
|
13
|
-
* @return Constructed element
|
|
14
13
|
*/
|
|
15
14
|
constructor(name: string, parent: XmlElement);
|
|
16
15
|
getName(): string;
|
package/dist/XmlElement.js
CHANGED
|
@@ -10,83 +10,81 @@
|
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.XmlElement = void 0;
|
|
13
|
-
|
|
13
|
+
class XmlElement {
|
|
14
14
|
/**
|
|
15
15
|
* Constructor for xml element. Allocates memory and initializes an element.
|
|
16
16
|
* @param name Name of the element
|
|
17
17
|
* @param parent Parent of the Xml Element
|
|
18
|
-
* @return Constructed element
|
|
19
18
|
*/
|
|
20
|
-
|
|
19
|
+
constructor(name, parent) {
|
|
21
20
|
this.name = "";
|
|
22
21
|
this.pcData = "";
|
|
23
22
|
this.name = name;
|
|
24
23
|
this.parent = parent;
|
|
25
24
|
this.attributes = Array();
|
|
26
25
|
}
|
|
27
|
-
|
|
26
|
+
getName() {
|
|
28
27
|
return this.name;
|
|
29
|
-
}
|
|
30
|
-
|
|
28
|
+
}
|
|
29
|
+
getPcData() {
|
|
31
30
|
return this.pcData;
|
|
32
|
-
}
|
|
33
|
-
|
|
31
|
+
}
|
|
32
|
+
getFirstChild() {
|
|
34
33
|
return this.firstChild;
|
|
35
|
-
}
|
|
36
|
-
|
|
34
|
+
}
|
|
35
|
+
getNextSibling() {
|
|
37
36
|
return this.nextSibling;
|
|
38
|
-
}
|
|
39
|
-
|
|
37
|
+
}
|
|
38
|
+
getParent() {
|
|
40
39
|
return this.parent;
|
|
41
|
-
}
|
|
40
|
+
}
|
|
42
41
|
/**
|
|
43
42
|
* Sets the value of an attribute to a given value
|
|
44
43
|
* @param attributeName Name of the attribute
|
|
45
44
|
* @param attributeValue New attribute value
|
|
46
45
|
*/
|
|
47
|
-
|
|
48
|
-
for (
|
|
46
|
+
setAttributeValue(attributeName, attributeValue) {
|
|
47
|
+
for (let i = 0; i < this.attributes.length; i++) {
|
|
49
48
|
if (this.attributes[i].getName() == attributeName) {
|
|
50
49
|
this.attributes[i].setValue(attributeValue);
|
|
51
50
|
}
|
|
52
51
|
}
|
|
53
|
-
}
|
|
52
|
+
}
|
|
54
53
|
/**
|
|
55
54
|
* Finds the attribute with the given name of an Xml element
|
|
56
55
|
* @param attributeName Name of the attribute
|
|
57
56
|
* @return If the Xml element has such an attribute returns its value, otherwise it returns NULL
|
|
58
57
|
*/
|
|
59
|
-
|
|
60
|
-
for (
|
|
58
|
+
getAttributeValue(attributeName) {
|
|
59
|
+
for (let i = 0; i < this.attributes.length; i++) {
|
|
61
60
|
if (this.attributes[i].getName() == attributeName) {
|
|
62
61
|
return this.attributes[i].getValue();
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
64
|
return "";
|
|
66
|
-
}
|
|
67
|
-
|
|
65
|
+
}
|
|
66
|
+
attributeSize() {
|
|
68
67
|
return this.attributes.length;
|
|
69
|
-
}
|
|
70
|
-
|
|
68
|
+
}
|
|
69
|
+
getAttribute(index) {
|
|
71
70
|
return this.attributes[index];
|
|
72
|
-
}
|
|
73
|
-
|
|
71
|
+
}
|
|
72
|
+
setNextSibling(nextSibling) {
|
|
74
73
|
this.nextSibling = nextSibling;
|
|
75
|
-
}
|
|
76
|
-
|
|
74
|
+
}
|
|
75
|
+
setFirstChild(firstChild) {
|
|
77
76
|
this.firstChild = firstChild;
|
|
78
|
-
}
|
|
79
|
-
|
|
77
|
+
}
|
|
78
|
+
addAttribute(xmlAttribute) {
|
|
80
79
|
this.attributes.push(xmlAttribute);
|
|
81
|
-
}
|
|
82
|
-
|
|
80
|
+
}
|
|
81
|
+
setPcData(pcData) {
|
|
83
82
|
this.pcData = pcData;
|
|
84
|
-
}
|
|
85
|
-
|
|
83
|
+
}
|
|
84
|
+
hasAttributes() {
|
|
86
85
|
return this.attributes.length != 0;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
}());
|
|
86
|
+
}
|
|
87
|
+
}
|
|
90
88
|
exports.XmlElement = XmlElement;
|
|
91
89
|
});
|
|
92
90
|
//# sourceMappingURL=XmlElement.js.map
|
package/dist/XmlElement.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XmlElement.js","sourceRoot":"","sources":["../source/XmlElement.ts"],"names":[],"mappings":";;;;;;;;;;;;IAEA;
|
|
1
|
+
{"version":3,"file":"XmlElement.js","sourceRoot":"","sources":["../source/XmlElement.ts"],"names":[],"mappings":";;;;;;;;;;;;IAEA,MAAa,UAAU;QASnB;;;;WAIG;QACH,YAAY,IAAY,EAAE,MAAkB;YAZ3B,SAAI,GAAW,EAAE,CAAA;YAC1B,WAAM,GAAW,EAAE,CAAA;YAYvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;YAChB,IAAI,CAAC,MAAM,GA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ACjC,CAAC;QAED,cAAc,CAAC,WAAuB;YAClC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;QAClC,CAAC;QAED,aAAa,CAAC,UAAsB;YAChC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAChC,CAAC;QAED,YAAY,CAAC,YAA0B;YACnC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;QACtC,CAAC;QAED,SAAS,CAAC,MAAc;YACpB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACxB,CAAC;QAED,aAAa;YACT,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,CAAC,CAAA;QACtC,CAAC;KAEJ;IA/FD,gCA+FC"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
+
if (k2 === undefined) k2 = k;
|
|
3
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
4
|
+
}) : (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
o[k2] = m[k];
|
|
7
|
+
}));
|
|
8
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
9
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
10
|
+
};
|
|
11
|
+
(function (factory) {
|
|
12
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
13
|
+
var v = factory(require, exports);
|
|
14
|
+
if (v !== undefined) module.exports = v;
|
|
15
|
+
}
|
|
16
|
+
else if (typeof define === "function" && define.amd) {
|
|
17
|
+
define(["require", "exports", "./XmlDocument", "./XmlElement", "./XmlAttribute", "./XmlTokenType", "./XmlTextType"], factory);
|
|
18
|
+
}
|
|
19
|
+
})(function (require, exports) {
|
|
20
|
+
"use strict";
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
__exportStar(require("./XmlDocument"), exports);
|
|
23
|
+
__exportStar(require("./XmlElement"), exports);
|
|
24
|
+
__exportStar(require("./XmlAttribute"), exports);
|
|
25
|
+
__exportStar(require("./XmlTokenType"), exports);
|
|
26
|
+
__exportStar(require("./XmlTextType"), exports);
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;IAAA,gDAA6B;IAC7B,+CAA4B;IAC5B,iDAA8B;IAC9B,iDAA8B;IAC9B,gDAA6B"}
|
package/package.json
CHANGED
package/source/XmlAttribute.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
export class XmlAttribute {
|
|
2
2
|
|
|
3
|
-
private name: string
|
|
3
|
+
private readonly name: string
|
|
4
4
|
private value: string
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Constructor for xml attribute. Initializes the attribute.
|
|
8
8
|
* @param name Name of the attribute
|
|
9
|
-
* @return Allocated and initialized attribute
|
|
10
9
|
*/
|
|
11
10
|
constructor(name: string) {
|
|
12
11
|
this.name = name
|
package/source/XmlElement.ts
CHANGED
|
@@ -13,7 +13,6 @@ export class XmlElement {
|
|
|
13
13
|
* Constructor for xml element. Allocates memory and initializes an element.
|
|
14
14
|
* @param name Name of the element
|
|
15
15
|
* @param parent Parent of the Xml Element
|
|
16
|
-
* @return Constructed element
|
|
17
16
|
*/
|
|
18
17
|
constructor(name: string, parent: XmlElement) {
|
|
19
18
|
this.name = name
|
package/source/index.ts
ADDED
package/source/tsconfig.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"module": "commonjs",
|
|
4
|
-
"target": "
|
|
4
|
+
"target": "es2018",
|
|
5
5
|
"sourceMap": true,
|
|
6
6
|
"noImplicitAny": true,
|
|
7
7
|
"removeComments": false,
|
|
8
|
-
"moduleResolution": "node"
|
|
8
|
+
"moduleResolution": "node",
|
|
9
|
+
"declaration": true,
|
|
9
10
|
},
|
|
10
11
|
"exclude": [
|
|
11
|
-
"source",
|
|
12
12
|
"node_modules",
|
|
13
13
|
"dist"
|
|
14
14
|
]
|