I'm using the version of Jaxb 2.2.11, I want to print the string "<" or ">" but I can't, with my code my output is: "<".
Example:
<contentHtml><![CDATA[<table width="1650" border="2"><tr width="1650"><td width="825"> TEXTBOX 1.1</td><td width="825"> TEXTBOX 1.2</td></tr></table>]]></contentHtml> My Code is:
try { JAXBContext context = JAXBContext.newInstance(test.class); Marshaller m = context.createMarshaller(); m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); m.marshal(testObject, new File("data/test.xml")); } catch (JAXBException e) { e.printStackTrace(); } How is the way to print properly this signs "<" or ">"?
No comments:
Post a Comment