/ LJCPHPCodeDoc / LJCGenDataGenLib / LJCGenDataGen / CreateLibXMLString


Parameters
$docXMLString - The DocData XML string.
$codeFileSpec - The code file specification.
$writeXML - Indicates if the XML file is to be written.
$outputPath - The output path.

Syntax

PHP
public function CreateLibXMLString(string $docXMLString, string $codeFileSpec
, bool $writeXML = false, string $outputPath = null) : string

Creates a Lib GenData XML string and optional file.

Example

PHP
 $devPath = "c:/Users/Les/Documents/Visual Studio 2022/LJCPHPProjects";
 require_once "$devPath/GenDoc/GenDataLib/LJCGenDataGenLib.php";
 require_once "$devPath/GenDoc/GenDataLib/LJCGenDataGenLib.php";
 
 $docDataGen = new LJCDocDataGen();
 $genDataGen = new LJCGenDAtaGen();
 
 $fileSpec = "SourceFile.php";
 $docXMLString = $this->DocDataGen->CreateDocXMLString($fileSpec);
 $genXMLString = $this->GenDataGen->CreateLibXMLString($docXMLString
   , $fileSpec);

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