// Get the body of a specific node Node node = doc.getElementsByTagName("title").item(0); String body = node.getTextContent(); // Iterate over all nodes in a NodeList and get their bodies NodeList nodeList = doc.getElementsByTagName("p"); for (int i = 0; i < nodeList.getLength(); i++) { Node node = nodeList.item(i); String body = node.getTextContent(); }In both examples, the `getBody` method is called on the `Node` object to retrieve the text content of the node's body. This method is part of the `org.w3c.dom` package, which is included in the Java standard library.