Show
Ignore:
Timestamp:
10/08/08 09:00:07 (3 months ago)
Author:
tokuhirom
Message:

added attr.* methods

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/cplusplus/llv8call/trunk/ext/libxml/node.h

    r20881 r20947  
    173173END 
    174174 
     175FUNCTION(getValue) 
     176    ARG_COUNT(0); 
     177    EXTERNAL_NODE(); 
     178    xmlChar * content = domGetNodeValue(node); 
     179    if (content) { 
     180        Handle<String> s = String::New((const char*)content); 
     181        xmlFree(content); 
     182        return s; 
     183    } else { 
     184        return Undefined(); 
     185    } 
     186END 
     187 
    175188static inline void setupNodeIM(Handle<ObjectTemplate> OBJECT_TEMPLATE) { 
    176189    BIND_IM("nodeName",            nodeName);