Test for changes in the data structure
Monday, 27 January 2020 · 2 messages · last reply 28 Jan 2020
B
benjamin.tobler27 Jan 2020 11:09 #
Dear all
I am extracting some nodes from a xml document. The structure of the xml document can change over time. Therefore, I would like to install a mechanism, which is testing for changes of the data structure of the relevant nodes. The schema is described in multiple xsd documents but one xsd document is referring to all others (screenshot).
[cid:image003.jpg at 01D5D502.4E0C7DB0]
I was testing the complete xml against the this xsd, which is referring to all other xsds, but I received the error message: "Validation could not be started: Java heap space" by using the function "
validate:xsd".
However, actually I only want to test the data structure of specific nodes and not the complete xml for changes. Is it possible to do this with BaseX? Thank you for your help!
Best Regards
BenjaminCG
Christian Grün28 Jan 2020 10:01 #
Dear Benjamin,
Quoted text · benjamin.tobler · 1 line
> I only want to test the data structure of specific nodes and not the
complete xml for changes. Is it possible to do this with BaseX?
I would guess this depends on your XSD files. Could you provide us with an example (XML, Schema) that demonstrates which parts of your data you want to validate, and which should be ignored?
Best,
Christian
Quoted text · benjamin.tobler at sbb.ch · 34 lines
On Mon, Jan 27, 2020 at 11:10 AM benjamin.tobler at sbb.ch < benjamin.tobler at sbb.ch> wrote: > Dear all > > > > I am extracting some nodes from a xml document. The structure of the xml > document can change over time. Therefore, I would like to install a > mechanism, which is testing for changes of the data structure of the > relevant nodes. The schema is described in multiple xsd documents but one > xsd document is referring to all others (screenshot). > > > > > > I was testing the complete xml against the this xsd, which is referring to > all other xsds, but I received the error message: “Validation could not be > started: Java heap space” by using the function “validate:xsd”. > > > > However, actually I only want to test the data structure of specific nodes > and not the complete xml for changes. Is it possible to do this with BaseX? > Thank you for your help! > > > > Best Regards > > > > Benjamin >
Written for BaseX 9.3. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery