174175176177178179180181
try { DOMParser dp = new DOMParser(); dp.parse(xml); return dp.getDocument(); } catch (Exception e) { throw new XindiceException("Error parsing Document", e); } }
301302303304305306307308
node.normalize(); xco.writeNode(node); xco.flush(); return bos.toByteArray(); } catch (Exception e) { throw new XindiceException("XML Compression Error", e); } }