Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to generate PHP classes from XML file #134

Open
Jrussell549 opened this issue Apr 16, 2021 · 0 comments
Open

Unable to generate PHP classes from XML file #134

Jrussell549 opened this issue Apr 16, 2021 · 0 comments

Comments

@Jrussell549
Copy link

Jrussell549 commented Apr 16, 2021

config.zip

I am using XSD-PHP for the first time . My goal is to convert XML files to PHP7 classes using XSD2PHP and then to covert those PHP classes to UML. I was able to generate an XML schema for the XML file I wanted and have it in a subdirectory within my project directory.

The following is the contents of my config.yml file
xsd2php: namespaces: '': 'IVR' destinations_php: 'IVR': classes destinations_jms: 'IVR': classes naming_strategy: short path_generator: psr4

I am using the following command:
vendor\bin\xsd2php convert config.yml C:...\XML_PHP\IVR\EKO2.xsd'

The error message I am getting in the command prompt is as follows
In ClassGenerator.php line 873: A method by name getNAME already exists in this class. convert <config> <src>...

Any help would be appreciated. I am using XSD-PHP to not have to write classes for each PHP file manually and intend on using in conjunction with Serializor and PHP_UML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant