|
|
| version 1.12, 2001/10/19 14:15:23 | version 1.13, 2001/10/19 14:42:53 |
|---|---|
| Line 184 static void _getAttribute(Request& r, co | Line 184 static void _getAttribute(Request& r, co |
| XalanElement& element=get_self_element(r, method_name); | XalanElement& element=get_self_element(r, method_name); |
| const String& name=params->as_string(0, "name must be string"); | const String& name=params->as_string(0, "name must be string"); |
| const XalanDOMString& attribute_value=element.getAttribute(pool.transcode(name)); | const XalanDOMString& attribute_value=element.getAttribute(*pool.transcode(name)); |
| // write out result | // write out result |
| r.write_no_lang(*new(pool) VString(pool.transcode(attribute_value))); | r.write_no_lang(*new(pool) VString(pool.transcode(attribute_value))); |
| } | } |
| Line 198 static void _setAttribute(Request& r, co | Line 198 static void _setAttribute(Request& r, co |
| try { | try { |
| element.setAttribute( | element.setAttribute( |
| pool.transcode(name), | *pool.transcode(name), |
| pool.transcode(attribute_value)); | *pool.transcode(attribute_value)); |
| } catch(const XalanDOMException& e) { | } catch(const XalanDOMException& e) { |
| Exception::convert(pool, &method_name, e); | Exception::convert(pool, &method_name, e); |
| } | } |
| Line 212 static void _removeAttribute(Request& r, | Line 212 static void _removeAttribute(Request& r, |
| const String& name=params->as_string(0, "name must be string"); | const String& name=params->as_string(0, "name must be string"); |
| try { | try { |
| element.removeAttribute(pool.transcode(name)); | element.removeAttribute(*pool.transcode(name)); |
| } catch(const XalanDOMException& e) { | } catch(const XalanDOMException& e) { |
| Exception::convert(pool, &method_name, e); | Exception::convert(pool, &method_name, e); |
| } | } |
| Line 224 static void _getAttributeNode(Request& r | Line 224 static void _getAttributeNode(Request& r |
| XalanElement& element=get_self_element(r, method_name); | XalanElement& element=get_self_element(r, method_name); |
| const String& name=params->as_string(0, "name must be string"); | const String& name=params->as_string(0, "name must be string"); |
| if(XalanAttr *attr=element.getAttributeNode(pool.transcode(name))) { | if(XalanAttr *attr=element.getAttributeNode(*pool.transcode(name))) { |
| // write out result | // write out result |
| VXnode& result=*new(pool) VXnode(pool, attr); | VXnode& result=*new(pool) VXnode(pool, attr); |
| r.write_no_lang(result); | r.write_no_lang(result); |
| Line 270 static void _getElementsByTagName(Reques | Line 270 static void _getElementsByTagName(Reques |
| VHash& result=*new(pool) VHash(pool); | VHash& result=*new(pool) VHash(pool); |
| if(const XalanNodeList *nodes= | if(const XalanNodeList *nodes= |
| element.getElementsByTagName(pool.transcode(name))) { | element.getElementsByTagName(*pool.transcode(name))) { |
| for(int i=0; i<nodes->getLength(); i++) { | for(int i=0; i<nodes->getLength(); i++) { |
| String& skey=*new(pool) String(pool); | String& skey=*new(pool) String(pool); |
| { | { |