ANT - replace xml declaration

Aiwa

New Member
I have an XML document composed of several other XML documents appended to it. As a result, there are several XML declarations within the document which prevent my XSLT from parsing it correctly. I am trying to remove the declarations from the document using the ant \[code\]replace\[/code\] and \[code\]replaceregexp\[/code\] tasks, but they do nothing to the file. This is what I have so far.\[code\]<replaceregexp file="${cppUnit.file}" > <regexp pattern="<?xml * ?>" /> <substitution expression="" /></replaceregexp>\[/code\]
 
Back
Top