Detecting unknown XML tags in Scala -


I am creating an XML parser in Scala and want to be defensive against user mistakes. If the user returns a tag that I do not support (for example, instead of & lt; name & gt; ) or more commonly , The wrong place on the tag, I want to find it and throw an error. How can I do this scala?

The best suggestion I have received is to get the XML schema and validate that file. Use the. W3schools show how to make a schema, there are many tools and classes that use these schemas to validate XML, I hope to update this answer as soon as possible, the way I work most efficiently Do it

Comments

Popular posts from this blog

sonata admin - how to add ManyToOne property field in configureListfield in sonataAdmin -

wpf - ControlTemplate with changes for every class -

sql - Return Function using Cursor -