I have developed this tool which can manipulate XML files ie read
them, make changes, and then write them back. Now I want to experiment
with Java code.
Is there a tool that convert Java code to a XML file using some
defined schema and convert back XML to Java?
Thanks,
Nikhil
Huh??? How would you convert a programming language to xml? I've never
heard of such a thing for any language.
--
/~\ The ASCII
\ / Ribbon Campaign
X Against HTML
/ \ Email!
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
Well, you have kind of asked me 2 questions: How and Why?
How: A Language is a structured definitional of commands so I don't
see why it can't be converted to XML. C# already has a definition
called CSAML. Check out: http://www.charlespetzold.com/etc/CSAML.html
Why: I am experimenting with way of extracting structure of a code
into a model XMl file which can be then manipulated and rewritten back
into the language. I could have made a custom parser for Java which
would have done the job but I prefer not tying it to particular
language. XML is by far, a standard way of representing structured
data of any kind, be is a any kind of program.
It seems to me like you're jamming square pegs into round holes here
because XML is designed for data and not commands, but with enough
effort I guess it can be made to fit.
> Why: I am experimenting with way of extracting structure of a code
> into a model XMl file which can be then manipulated and rewritten back
> into the language. I could have made a custom parser for Java which
> would have done the job but I prefer not tying it to particular
> language. XML is by far, a standard way of representing structured
> data of any kind, be is a any kind of program.
Ok, I kind of see how you would do it, but I still fail to see why
anybody would bother, except for research purposes. It requires an
enormously larger amount of typing, and the source code files would be
gigantic compared to standard source code.
I guess the one practical use I can see here would be for making
automatic programming language translators.