문제

Is there a java tool, that allows automatic editing of XML files according to a configuration?

Let say, i want to add the tag <foo>hello</foo> after every tag <boo> in a file.

I would appreciate a tool, where i can config a text and a location (after tag, into tag) and the tool automatically edit target XML files.

도움이 되었습니까?

해결책

Have a look at XSLT stylesheets - you can define rules to convert XML to another, possibly non-XML, format. xsltproc is a command-line tool to apply an XSLT transform to an XML file. There are also GUI-based tools but I can't recommend any.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top