Register / Login
File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of
Clojure in Action
this week in the
XML and Related Technologies
Validating XML against Schema
posted 9 years ago
I have a small query. I would like to validate below XML for specific condition using schema
<translations> <translation> <targetnetworkid>1</targetnetworkid> <dnprefix>2</dnprefix> <destaddr>1</destaddr> </translation> <translation> <targetnetworkid>1</targetnetworkid> <dnprefix>2</dnprefix> <destaddr>67</destaddr> </translation> </translations>
targetnetworkid and dnprefix combination is a composite key so I dont want it to be repeated in terms of VALUES. Can we handle it thru' schema?
I agree. Here's the link:
tag-value should be unique ...
XSL and Enumeration Query
Chain reaction. How to chain multiple translations
SAXParseException: Document root element is missing
XML Schema "key" and "keyref" help