@SuppressWarnings("RedundantThrows") public void onChildText(SAXElement element, SAXText childText, ExecutionContext executionContext) throws SmooksException, IOException { if(currentNode == document) { // Just ignore for now... return; } if(childText.getText().trim().length() == 0) { // Ignore pure whitespace... return; } switch (childText.getType()) { case TEXT: currentNode.appendChild(document.createTextNode(childText.getText())); break; case CDATA: currentNode.appendChild(document.createCDATASection(childText.getText())); break; case COMMENT: currentNode.appendChild(document.createComment(childText.getText())); break; case ENTITY: currentNode.appendChild(document.createTextNode(childText.getText())); break; } }
@SuppressWarnings("RedundantThrows") public void onChildText(SAXElement element, SAXText childText, ExecutionContext executionContext) throws SmooksException, IOException { if(currentNode == document) { // Just ignore for now... return; } if(childText.getText().trim().length() == 0) { // Ignore pure whitespace... return; } switch (childText.getType()) { case TEXT: currentNode.appendChild(document.createTextNode(childText.getText())); break; case CDATA: currentNode.appendChild(document.createCDATASection(childText.getText())); break; case COMMENT: currentNode.appendChild(document.createComment(childText.getText())); break; case ENTITY: currentNode.appendChild(document.createTextNode(childText.getText())); break; } }
public void onChildText(SAXElement element, SAXText childText, ExecutionContext executionContext) throws SmooksException, IOException { if(currentNode == document) { // Just ignore for now... return; } if(childText.getText().trim().length() == 0) { // Ignore pure whitespace... return; } switch (childText.getType()) { case TEXT: currentNode.appendChild(document.createTextNode(childText.getText())); break; case CDATA: currentNode.appendChild(document.createCDATASection(childText.getText())); break; case COMMENT: currentNode.appendChild(document.createComment(childText.getText())); break; case ENTITY: currentNode.appendChild(document.createTextNode(childText.getText())); break; } }
@SuppressWarnings("RedundantThrows") public void onChildText(SAXElement element, SAXText childText, ExecutionContext executionContext) throws SmooksException, IOException { if(currentNode == document) { // Just ignore for now... return; } if(childText.getText().trim().length() == 0) { // Ignore pure whitespace... return; } switch (childText.getType()) { case TEXT: currentNode.appendChild(document.createTextNode(childText.getText())); break; case CDATA: currentNode.appendChild(document.createCDATASection(childText.getText())); break; case COMMENT: currentNode.appendChild(document.createComment(childText.getText())); break; case ENTITY: currentNode.appendChild(document.createTextNode(childText.getText())); break; } }