Frage

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.

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top