------------------------------------------------------------------------------
| 366 | |
| 367 | //------------------------------------------------------------------------------ |
| 368 | bool vtkDataAssembly::vtkInternals::Parse(const char* xmlcontents, vtkDataAssembly* self) |
| 369 | { |
| 370 | auto& doc = this->Document; |
| 371 | auto result = doc.load_string(xmlcontents); |
| 372 | if (!result) |
| 373 | { |
| 374 | vtkErrorWithObjectMacro(self, |
| 375 | "Invalid xml provided. \n" |
| 376 | << " Error description: " << result.description() << "\n" |
| 377 | << " Error offset: " << result.offset << " (error at [..." << (xmlcontents + result.offset) |
| 378 | << "])"); |
| 379 | return false; |
| 380 | } |
| 381 | return this->ParseDocument(self); |
| 382 | } |
| 383 | |
| 384 | //============================================================================ |
| 385 | vtkStandardNewMacro(vtkDataAssembly); |
no test coverage detected