This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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: 776


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
I agree. Here's the link:
subject: [ Suggestion ] A simple validateable file format
It's not a secret anymore!