------------------------------------------------------------------------------
| 478 | |
| 479 | //------------------------------------------------------------------------------ |
| 480 | bool vtkDataAssembly::InitializeFromXML(const char* xmlcontents) |
| 481 | { |
| 482 | this->Initialize(); |
| 483 | if (xmlcontents == nullptr || xmlcontents[0] == '\0') |
| 484 | { |
| 485 | return true; |
| 486 | } |
| 487 | |
| 488 | if (!this->Internals->Parse(xmlcontents, this)) |
| 489 | { |
| 490 | this->Initialize(); |
| 491 | return false; |
| 492 | } |
| 493 | return true; |
| 494 | } |
| 495 | |
| 496 | //------------------------------------------------------------------------------ |
| 497 | std::string vtkDataAssembly::SerializeToXML(vtkIndent indent) const |