Hi
I want to write a program in J2SE that be able to read commands (with their parameters) from some file (Like an XML file) And then do the corresponding procedure on some given data. For example if the XML file be:<cut>
<from>start</from>
<to>end</to>
</cut>
<reverse></reverse>
<cut>
<from>
<find pos="4">tt</find>
</from>
</cut>
My program must开发者_Go百科 get the string then do this:
1. cut string from "start" to "end" 2. reverse sstring 3. cut again from where it finds "tt" after the 4th character to end of string and then return this result.Is There any framework or library to do this? or i should write by my own?
(the form if input file is not important for me i just want it be editable by humans)Thanks
I think what you are looking for is Jelly.
精彩评论