|
|
| version 1.151, 2007/02/28 19:09:23 | version 1.153, 2007/02/28 19:36:31 |
|---|---|
| Line 399 static void _create(Request& r, MethodPa | Line 399 static void _create(Request& r, MethodPa |
| // must be last action in if, see after if} | // must be last action in if, see after if} |
| } else { // [localName] | } else { // [localName] |
| if (VFile* vfile=param.as_vfile(String::L_UNSPECIFIED)){ | if(const String* value = param.get_string()){ |
| xmldoc=xmlParseMemory(vfile->value_ptr(), vfile->value_size()); | xmlChar* localName=r.transcode(*value); |
| if(!xmldoc || xmlHaveGenericErrors()) | |
| throw XmlException(0); | |
| } else { | |
| xmlChar* localName=r.transcode(param.as_string()); | |
| #if 0 | #if 0 |
| GdomeDocumentType *documentType=gdome_di_createDocumentType ( | GdomeDocumentType *documentType=gdome_di_createDocumentType ( |
| docimpl, | docimpl, |
| r.transcode(qualifiedName), | r.transcode(qualifiedName), |
| 0/*publicId*/, | 0/*publicId*/, |
| 0/*systemId*/, | 0/*systemId*/, |
| &exc); | &exc); |
| if(!documentType || exc || xmlHaveGenericErrors()) | if(!documentType || exc || xmlHaveGenericErrors()) |
| throw Exception( | throw Exception( |
| method_name, | method_name, |
| exc); | exc); |
| /// +xalan createXMLDecl ? | /// +xalan createXMLDecl ? |
| #endif | #endif |
| xmldoc=xmlNewDoc(0); | xmldoc=xmlNewDoc(0); |
| if(!xmldoc || xmlHaveGenericErrors()) | if(!xmldoc || xmlHaveGenericErrors()) |
| Line 427 static void _create(Request& r, MethodPa | Line 423 static void _create(Request& r, MethodPa |
| set_encoding=true; | set_encoding=true; |
| // must be last action in if, see after if} | // must be last action in if, see after if} |
| } else { | |
| VFile* vfile=param.as_vfile(String::L_UNSPECIFIED); | |
| xmldoc=xmlParseMemory(vfile->value_ptr(), vfile->value_size()); | |
| if(!xmldoc || xmlHaveGenericErrors()) | |
| throw XmlException(0); | |
| } | } |
| } | } |
| // must be first action after if} | // must be first action after if} |