JPatch XML file format

Ideas, enhancements, feature requests and development related discussion.

JPatch XML file format

Postby sascha » Tue Mar 21, 2006 9:33 pm

I was playing around with the xml parser and wrote a dtd to validate JPatch files.
It can be downloaded here and should be able to validate current (0.5) jpatch models and animations.

When writing the dtd I've found some problems that should be avoided in future versions of JPatch's file format:

The same tags are used in model files and choreographies, but have different meaning there. I don't want to use namespaces as they blow up the document size and there's no namespace support in DTDs either (I know, I could use schema...). But I think it would be better to keep the DTDs separate for model and animation files.

It might make sense to use IDs and IDREFs to reference e.g. attached controlpoints - right now the format uses implied numberings - e.g. all cps are numbered (starting from 0) when the document is parsed.

Don't worry, all future versions of JPatch will be able to load models made with "old" versions. I can't garantee this for animations right now though.

I'm not an xml guru, and I'd appreciate your feedback.
sascha
Site Admin
 
Posts: 2792
Joined: Thu May 20, 2004 9:16 am
Location: Austria

Return to Development

Who is online

Users browsing this forum: No registered users and 2 guests

cron