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

Validation against XSD file #57

Open
nzurita opened this issue Oct 30, 2015 · 2 comments
Open

Validation against XSD file #57

nzurita opened this issue Oct 30, 2015 · 2 comments

Comments

@nzurita
Copy link

nzurita commented Oct 30, 2015

Hello, after running your sample code with pain.001.001.03 spefication and validating generated XML against this XSD file (using different validators) I get this error:

Cannot Find The Declaration Of Element 'Document'.. Line '1', Column '120'.

Which is weird, as actually I can see it's the first element defined in XSD file.

I'm not sure this is an issue of your code but I ask just in case somebody else found this. I have no other way to check validity right now.

Thanks

@nzurita
Copy link
Author

nzurita commented Nov 3, 2015

So, it's actually a bug, when generating XML with rule pain.001.001.03 I get an XML definition for pain.001.002.03:

$domBuilder = DomBuilderFactory::createDomBuilder($sepaFile, 'pain.001.001.03');

generates pain.001.002.03:

<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.002.03" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

@BorislavSabev
Copy link

@nzurita this repository is really stale by now.

Some of us forked it and continued dev in a new repo.
It should be a drop-in replacement for the current one.
Try it:
https://github.com/php-sepa-xml/php-sepa-xml

You will not get any help here but we could see what's happening in the other repo.

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

2 participants