12

I have a XML file and a a bunch of XSD files with schemas. How do I parse the XML file using the correct XSD file and schema in PHP?

1

2 Answers 2

9

You can use the DOM or XmlReader extensions

to validate documents against a schema.

Sign up to request clarification or add additional context in comments.

Comments

2

Check this tool - http://github.com/moyarada/XSD-to-PHP. It sounds exactly what you're asking. You can marshal/unmarshal XML usind generated from XSD PHP classes.

2 Comments

Good idea but how do I drive this thing? ;) No use cases or examples.
Yes the problem is this library is lack of documentation

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.