You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -81,8 +102,6 @@ let xmlResult = ''; for await (const node of new XMLReader ().process (xmlSource
81
102
*[Serializing an Object According to an XML Schema](https://github.com/do-/node-xml-toolkit/wiki/Use-Case:-Serializing-an-Object-According-to-an-XML-Schema)
82
103
83
104
```js
84
-
const {XMLSchemata} =require ('xml-toolkit')
85
-
86
105
constdata= {ExportDebtRequestsResponse: {
87
106
"request-data": {
88
107
// ...
@@ -99,47 +118,20 @@ const xml = xs.stringify (data)
99
118
<!-- ... and so on ... -->
100
119
*/
101
120
```
102
-
103
-
* Invoking a [SOAP 1.1](https://github.com/do-/node-xml-toolkit/wiki/SOAP11) or [SOAP 1.2](https://github.com/do-/node-xml-toolkit/wiki/SOAP12) Web Service
Unlike Java (with [JAXB](https://www.oracle.com/technical-resources/articles/javase/jaxb.html) and [JAX-WS](https://www.oracle.com/technical-resources/articles/javase/jax-ws-2.html)) and some other software development platforms dating back to late 1990s, the core node.js library doesn't offer any standard tool for dealing with XML.
@@ -155,9 +147,6 @@ Pure js 3rd party modules are abundant, but after some real tasks based research
155
147
156
148
No W3C specification is 100% implemented here. For instance, DTDs are not supported, so, in theory, any rogue XML file using such bizarre deprecated feature as [Entity Declarations](https://www.w3.org/TR/xml/#sec-entity-decl) may crash the local XML parser.
157
149
158
-
Though `node-xml-toolkit` has some support for [XMLSchema](https://github.com/do-/node-xml-toolkit/wiki/XMLSchema), it cannot be used for validation. Here, XML Schema is used only as a template for outputting valid XML provided a correct set of input data. That means, each `decimal` will be formatted with proper `fractionDigits`, but no CPU cycle will be spent on checking whether the incoming 10 char string fully conforms to the [`date`](https://www.w3.org/TR/2012/REC-xmlschema11-2-20120405/datatypes.html#date) lexical representation or not.
159
-
160
-
In short, `node-xml-toolkit` may produce incorrect results for some input data, especially for deliberately broken ones.
150
+
The [XMLSchema](https://github.com/do-/node-xml-toolkit/wiki/XMLSchemata) is fairly usable for most real world cases, still some features (like `xs:unique`) are ignored completely, some others may require more test coverage. In general, XML Schema support in `xml-toolkit` should be considered _forever beta_.
161
151
162
-
There are perfectly reliable external tools for XML validation: for instance,
163
-
[xmllint](https://linux.die.net/man/1/xmllint) (used in the test suite here) do just fine.
152
+
There are perfectly reliable external tools for XML validation: for instance, [xmllint](https://linux.die.net/man/1/xmllint) (used in the test suite here) do just fine.
0 commit comments