سؤال

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