Two Laptop Bag*
The moose likes Java in General and the fly likes [ Suggestion ] A simple validateable file format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "[ Suggestion ] A simple validateable file format" Watch "[ Suggestion ] A simple validateable file format" New topic

[ Suggestion ] A simple validateable file format

Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 761


Other than XML (XML Schema), what other file formats can I use such that I can validate its structure and contents via some schema file ? Merci.

[ January 24, 2005: Message edited by: Pho Tek ]


Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
Roll your own?

Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
XML is a subset of Standard General Markup Language (or something real close to that). SGML is a nasty thing, but I'd bet there are grammars and validators out there.

Roll your own could be fun. You can define grammars and make parsers to validate them. It's a whole other world when you get into that stuff ... I wouldn't try to become expert in it unless I thought there was a career waiting. Look at ANTLR for a start.

I'm curious why you're asking?
[ January 25, 2005: Message edited by: Stan James ]

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
It is sorta covered in the JavaRanch Style Guide.
subject: [ Suggestion ] A simple validateable file format
Similar Threads
Can I have both DTD and schema delcaration for single XML file?
Question about WSDL import element
JAXB namespace issue
Generic XML parsing