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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -