unmarshallFromTemplate insert xml problem
Posted: Fri Mar 30, 2012 3:12 am
Hi All,
We are new to docx4j.
We are trying to determine the limitations of unmarshallFromTemplate()
The goal is to move the body content of one document as replacement string for a tag.
// pass: mappings.put( "aok.relatedEfforts", "radius > 3.0 nm" );
// fail: mappings.put( "aok.relatedEfforts", "radius <= 3.0 nm" );
// pass: mappings.put( "aok.relatedEfforts", "<w:t>text for the Related Effort block</w:t>" );
When testing string replacement, any string with a '<' throws assorted org.xml.sax.SAXParseExceptions.
Unrelated, large block of word xml did not replace a tag in other tests.
Recommendation for another API or proper use of the unmarshallFromTemplate appreciated.
Cheers,
Kevin
We are new to docx4j.
We are trying to determine the limitations of unmarshallFromTemplate()
The goal is to move the body content of one document as replacement string for a tag.
// pass: mappings.put( "aok.relatedEfforts", "radius > 3.0 nm" );
// fail: mappings.put( "aok.relatedEfforts", "radius <= 3.0 nm" );
// pass: mappings.put( "aok.relatedEfforts", "<w:t>text for the Related Effort block</w:t>" );
When testing string replacement, any string with a '<' throws assorted org.xml.sax.SAXParseExceptions.
Unrelated, large block of word xml did not replace a tag in other tests.
Recommendation for another API or proper use of the unmarshallFromTemplate appreciated.
Cheers,
Kevin