UNC-Libraries / jquery.xmleditor

jQuery based XML editor plugin.
153 stars 71 forks source link

schema conformance issue #98

Open sljohns80 opened 6 years ago

sljohns80 commented 6 years ago

I was able to get the jquery.xmleditor to work with the exception of conforming to the rules of the associated schema. My schema says that the is required after the root node and occurs only once. However, in the jquery.xmleditor I am able to insert multiple <title> tags after the root. Any help would be greatly appreciated</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/bbpennel"><img src="https://avatars.githubusercontent.com/u/969810?v=4" />bbpennel</a> commented <strong> 6 years ago</strong> </div> <div class="markdown-body"> <p>Hello @sljohns80. Unfortunately the editor does not currently prevent creation of invalid documents, it only attempts to assist in creating documents. At the time it was created there were not any javascript based xsd validators which supported import of additional schemas, although there may be some now. If you have a backend server which the contents of the editor are submitted to, then validation can happen there, with the results communicated back to the client, but its a bit clunky.</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>