Re:Forecast, don't guesstimate your software projects
by brazzy on Saturday June 13, 2020 @02:06AM
(#23507225)
There's pretty much always something novel or unique in the way things are put together. I recently had a project that was at first glance a pretty trivial "enter data, verify it, package as XML and send to a backend". Until we realized that the combination of privacy requirements and an industry spec would have required us to do schema validation of the XML in the browser. And apparently the only Javascript library which
does that is machine translated from C, not very stable and doesn't support UTF-8.
[ Parent
| on HN ]
Re:Forecast, don't guesstimate your software projects
by tannhaeuser on Saturday June 13, 2020 @03:57AM
(#23507709)
O/T but was it XML Schema specifically, or just XML DTDs that you needed to validate against? For the latter case, there's [1] (my proj), plus the option to rewrite XSDs into DTDs (under natural assumptions eg no local element redefinitions) without having to wrestle with Xerces and/or libxml (which hasn't formally completed XSD support anyway) and emscripten. You might also have luck by transpiling Xerces/Java to JavaScript using Google's j2cl+closure-compiler (which works very well if you can swallow bazel and/or isolate the actual j2cl Java app from its bazel wrapper).
[1]: http://sgmljs.net