Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top