Hi people, there is any way to configure XMLBeans to use SAX in order to feed business objects generated by the scomp tool ? What a I need is to optimizememory consumption because I'm feeding XML beans with huge XML files
thanks
-- Mario Rodriguez
XmlBeans, by default, escapes the minimum number of characters that are
required:
- lt;
- amp;
- quot; (only if inside an attribute value)
Other than this, you can use the XmlOptions to turn on escaping for
other characters, as you correctly pointed out.
If you want to, say, escape every
Radu,
it is possible to escape a range of characters using the
XmlOptionCharEscapeMap:
XmlOptionCharEscapeMap charEsc = new XmlOptionCharEscapeMap();
charEsc.addMappings('A', 'Z',
XmlOptionCharEscapeMap.HEXADECIMAL);
System.out.println(charEsc.getEscapedString('A'));
3 matches
Mail list logo