mkwan 2002/09/06 09:11:41
Modified: java/src/org/apache/xml/dtm/ref DTMNodeProxy.java
Log:
Add a convenient interface getStringValue() which returns the
string value of a node. It is used by the extension code
to get a node value without hacking into the DTM.
Revision Changes Path
1.14 +10 -0
xml-xalan/java/src/org/apache/xml/dtm/ref/DTMNodeProxy.java
Index: DTMNodeProxy.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xml/dtm/ref/DTMNodeProxy.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- DTMNodeProxy.java 8 Feb 2002 23:33:50 -0000 1.13
+++ DTMNodeProxy.java 6 Sep 2002 16:11:41 -0000 1.14
@@ -304,6 +304,16 @@
{
return dtm.getNodeValue(node);
}
+
+ /**
+ * @return The string value of the node
+ *
+ * @throws DOMException
+ */
+ public final String getStringValue() throws DOMException
+ {
+ return dtm.getStringValue(node).toString();
+ }
/**
*
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]