当前位置: 动力学知识库 > 问答 > 编程问答 >

java framework for parsing action file

问题描述:

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 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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: