char *str = Z_STRVAL_P(obj);
return new Replace(str);
}
+ case IS_RESOURCE: {
+ xmlDocPtr *doc;
+ if (SWIG_ConvertPtr(obj, (void **)&doc, SWIGTYPE_p_xmlDocPtr, 0) < 0 || doc == NULL) {
+ return NULL;
+ }
+ return new ReplaceInclude(xmlCopyDoc(*doc, 1));
+ }
case IS_NULL:
return NULL;
default: