/ LJCPHPCodeDoc / LJCDocDataLib / LJCDocDataFile / Serialize


Parameters
$xmlFileSpec - The source XML file specification.

Syntax

PHP
public function Serialize(string $xmlFileSpec) : void

Writes the serialized XML.

Example

PHP
 include_once "LJCRoot.php";
 $prefix = RelativePrefix();
 include_once "$prefix/GenDoc/DocDataLib/LJCDocDataLib.php";
 
 $docDataFile = LJCDocDataFile::Deserialize("DocData.xml");
 $docDataFile->Serialize("NewDocData.xml");

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.