optimizing memory consumption with XMLBeans

2006-03-20 Thread Mario Rodriguez
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

RE: special character escaping

2006-03-20 Thread Radu Preotiuc-Pietro
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

RE: special character escaping

2006-03-20 Thread Wing Yew Poon
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'));