XsdSchemaParser
in package
The XsdSchemaParser class provides functionality to process and parse XSD (XML Schema Definition) files, extracting relevant taxonomy elements and storing them in a database.
Table of Contents
Properties
Methods
- __construct() : void
- Constructor method.
- parse() : void
- Parses an XSD file to extract taxonomy elements and stores them in the database.
Properties
$mySql
private
MySql
$mySql
Methods
__construct()
Constructor method.
public
__construct(MySql $mySql) : void
Parameters
- $mySql : MySql
-
Instance of the MySql class.
parse()
Parses an XSD file to extract taxonomy elements and stores them in the database.
public
parse(int $taxonomyVersionId, string $file) : void
Parameters
- $taxonomyVersionId : int
-
The ID of the taxonomy version to associate elements with.
- $file : string
-
The path to the XSD file to be parsed.