Lazy XSD Validation
- 4 replies.
- This is not yet resolved.
- This question was started by Ashutosh Bapat.
- Last post by Sjoerd Visscher.
|
user
June 22nd 2009
|
Can XOPUS load in valid XML ? What we want to do is, let users load invalid XML , and then user gets the problem areas in XML as highlighted. Before saving we want to force XSD validation. Or may be user decides when to swith on or off XSD validations.
|
|
Xopus Team
June 23rd 2009
|
Xopus is not able to load invalid XML. If you have a way of marking XML files as invalid, you could use the setLoadXMLFunction to re-route your XML loading, and show a dialog that allows users to fix the invalid XML, outside of Xopus.
What you describe isn't offered by Xopus. |
|
Xopus Team
June 23rd 2009
|
It is essential for the way Xopus works that the document is always valid. But Xopus 4 has an autoMakeValid option, which will try to fix invalid documents automatically. This works when there are f.e. elements missing. This won't work for f.e. simple-type values with patterns.
|
|
user
June 26th 2009
|
Thanks Sjoerd, will autoMakeValid fill in missing required attributes ?
|
|
Xopus Team
June 27th 2009
|
Yes, as long as Xopus can calculate a valid initial value. Again this won't work with patterns f.e.
|
- Support
- › Forum
- › General Discussion
- › Lazy XSD Validation
React
Write a comment