I've got an XML and HTML file pair that needs to be merged into a 3rd XML file.
The original XML has a line like this:
<blah:formProperty id="_formGenerationTemplate" default="%HTMLFORM%" type="string"/>
The HTML file looks like this:
<style>
#processDetails fieldset {
margin-top: 0;
}
#processDetails .group-field {
float: left !important;
width: 100%;
}
#processDetails .field label {
text-align: left;
}
#processDetails .field input,#processDetails .field select {
clear: both;
}
#processDetails .field .validation-message {
clear: none !important;
margin-left: 20px !important;
float: left !important;
}
</style>
I need to replace %HTMLFORM% in the XML file with the escaped HTML above and dump it all in a 3rd XML file.
What is the best way to do this?
I assume I have to create a new builder?
The only way I know to do this is via a shell script invoked by the new builder. But I would hope there is a better way to do this.