Skip to content

Commit 8be4bd5

Browse files
committed
fix doctype
1 parent 9fc3524 commit 8be4bd5

File tree

12 files changed

+204
-46
lines changed

12 files changed

+204
-46
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<small>Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library.</small>
22

3+
**5.2.4 / 2025-06-06**
4+
- fix (#747): fix EMPTY and ANY with ELEMENT in DOCTYPE
5+
36
**5.2.3 / 2025-05-11**
47
- fix (#747): support EMPTY and ANY with ELEMENT in DOCTYPE
58

TODO.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
- Combine validator in parser
2+
- support: ignore attributes, stop nodes etc.
3+
- [ ] skip
4+
```
5+
{
6+
skip: {
7+
tags: string[]|regx|jpath[]|fn
8+
tagsWithAttributes: string[]|regx|fn,
9+
tagsWithoutAttributes: string[]|regx|fn,
10+
attributes: string[]|regx|fn,
11+
attributesWithTag: string[]|regx|jpath[]|fn,
12+
attributesWithoutTag: string[]|regx|jpath[]|fn
13+
first: n, //tags
14+
last: n. //tags
15+
}
16+
}
17+
```
18+
- [ ] Upllift text data #414
19+
```
20+
{
21+
unwrapText: {
22+
withAttribute: string[]|regx|fn,
23+
withJPath: string[]|regex|fn,
24+
withTag: string[]|regex|fn
25+
}
26+
}
27+
```
28+
29+
P0
30+
31+
P1
32+
* Support external entities in XML Builder
33+
* Write UT for nested stop node
34+
* OptionsBuilder: replace by Object.assign
35+
36+
P2
37+
* Multiple roots
38+
* support stop nodes expression like head.*.meta
39+
* skip parsing of after some tag
40+
* validate XML stream data
41+
* Parse JSON string to XML. Currently it transforms JSON object to XML. Partially done. Need to work on performance.
42+
* Accept streams, arrayBuffer
43+
https://github.com/NaturalIntelligence/fast-xml-parser/issues/347
44+
* XML to JSON ML : https://en.wikipedia.org/wiki/JsonML
45+
46+
47+
48+
49+
50+
51+
----
52+
53+
Entities
54+
* https://www.w3schools.com/xml/xml_dtd.asp
55+
* https://web-in-security.blogspot.com/2016/03/xxe-cheat-sheet.html
56+
* https://stackoverflow.com/questions/28942711/in-xml-dtds-is-it-possible-to-provide-multiple-definitions-for-same-element-depe
57+
* https://www.w3.org/TR/REC-xml/#sec-condition-sect

lib/fxp.cjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/fxp.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/fxp.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/fxparser.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/fxparser.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nexttodo.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +0,0 @@
1-
P0
2-
3-
P1
4-
* Support external entities in XML Builder
5-
* Write UT for nested stop node
6-
* OptionsBuilder: replace by Object.assign
7-
* Es6 modules
8-
9-
P2
10-
* Multiple roots
11-
* support stop nodes expression like head.*.meta
12-
* skip parsing of after some tag
13-
* validate XML stream data
14-
* Parse JSON string to XML. Currently it transforms JSON object to XML. Partially done. Need to work on performance.
15-
* Accept streams, arrayBuffer
16-
https://github.com/NaturalIntelligence/fast-xml-parser/issues/347
17-
* XML to JSON ML : https://en.wikipedia.org/wiki/JsonML
18-
19-
20-
21-
22-
23-
24-
----
25-
26-
Entities
27-
* https://www.w3schools.com/xml/xml_dtd.asp
28-
* https://web-in-security.blogspot.com/2016/03/xxe-cheat-sheet.html
29-
* https://stackoverflow.com/questions/28942711/in-xml-dtds-is-it-possible-to-provide-multiple-definitions-for-same-element-depe
30-
* https://www.w3.org/TR/REC-xml/#sec-condition-sect

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fast-xml-parser",
3-
"version": "5.2.3",
3+
"version": "5.2.4",
44
"description": "Validate XML, Parse XML, Build XML without C/C++ based libraries",
55
"main": "./lib/fxp.cjs",
66
"type": "module",

0 commit comments

Comments
 (0)