I’m adapting a vcard implementation to a JS MVC framework. I’d like to be able to validate against the vcard spec’s DTD in the client-side model. I’ve been been hunting around unsuccessfully for validation against a DTD Javascript. Anyone heard of something like this?
Share
Wouldn’t you need to re-validate it on the server anyway?
Depending on DTD complexity, you may want to only check XML validity on the client (by attempting to deserialize it etc.), maybe throw in a couple primitive checks manually. It could then be fully validated on the server.
Anyway: Validating XML Documents by Using DTDs looks promising.