Lines Matching refs:document
312 out.append("<document>\n");
316 // element so that the StringWriter contains a valid XML document.
323 // Close the XML document body
324 out.append("\n</document>");
333 * Parse the XML document contained in a string.
335 * @param document string with the contents of an XML document
336 * @return a DOM representation of the document
337 * @throws Exception if the document cannot be parsed
339 private Document parseXML(String document) throws Exception {
341 new ByteArrayInputStream(document.getBytes("UTF-8"));