Parameters
$xmlFileSpec - The source XML file specification.
Returns
The Sections object.
Syntax
PHP |
public static function Deserialize(string $xmlFileSpec) : LJCSections
|
Deserializes the data from a Sections XML file.
Example
PHP |
<Data xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<Sections>
<Section>
<Begin/>
<Name>Main</Name>
<Items>
<Item>
<Replacements>
<Replacement>
<Name>_FileSummary_</Name>
<Value>This is the file summary text.</Value>
</Replacement>
<Replacement>
<Name>_FileName_</Name>
<Value>LJCLib</Value>
</Replacement>
</Replacements>
</Item>
</Items>
</Section>
</Sections>
</Data>
$webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
require_once "$webCommonPath/LJCGenTextSectionLib.php";
// $sections is an LJCSections object.
$sections = LJCSections::Deserialize("Sections.xml");
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.