Browse files

Fixes #100 - use getNodeValue instead of getTextContent

  • Loading branch information...
1 parent a9400ef commit 54ed0cc8b7e8deffd5e088305ca7723dc0bd963c @rolfl rolfl committed Nov 7, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 core/src/java/org/jdom2/input/DOMBuilder.java
View
6 core/src/java/org/jdom2/input/DOMBuilder.java
@@ -162,7 +162,7 @@ public Document build(org.w3c.dom.Document domDocument) {
* @since JDOM2
*/
public org.jdom2.CDATA build(org.w3c.dom.CDATASection cdata) {
- return factory.cdata(cdata.getTextContent());
+ return factory.cdata(cdata.getNodeValue());
}
/**
@@ -173,7 +173,7 @@ public Document build(org.w3c.dom.Document domDocument) {
* @since JDOM2
*/
public org.jdom2.Text build(org.w3c.dom.Text text) {
- return factory.text(text.getTextContent());
+ return factory.text(text.getNodeValue());
}
/**
@@ -184,7 +184,7 @@ public Document build(org.w3c.dom.Document domDocument) {
* @since JDOM2
*/
public org.jdom2.Comment build(org.w3c.dom.Comment comment) {
- return factory.comment(comment.getTextContent());
+ return factory.comment(comment.getNodeValue());
}
/**

0 comments on commit 54ed0cc

Please sign in to comment.