Thx, I'll give it a swing
-----Original Message-----
From: Aleksei Valikov [mailto:valikov_at_gmx.net]
Sent: Wednesday 17 August 2005 16:57
To: users_at_jaxb.dev.java.net
Subject: Re: Who uses jaxb?
Hi.
> This is slightly off topic, but I'm sure that this is the right bunch
of
> people to ask...
>
> What open source tool would easily grab data, not in tagged or XML
> format, from a text file and generate classes that would spit out XML.
>
> I.e. you don't have a schema, but can break up the text string by
> setting the offsets and want to end up with Java classes.
>
>
>
> For example,
>
> 1234PeteDavids12081990jobless
>
> Should translate into a class like below
>
> Member (
>
> * ID = 1234
> * Name = Peter
> * Surname = Davids
> * Date of Birth = 12081990
> * Job Status = jobless
Any grammar-driven parser generator. Examples are JavaCC, ANTLR.
You'll need to define EBNF-style grammar and these tools will generate
parsers for you. Adding SAX on top of it is a piece of cake.
Bye.
/lexi
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net