digitick / php-sepa-xml

* THIS PROJECT IS NO LONGER MAINTAINED* SEPA file generator in PHP
107 stars 63 forks source link

Validation against XSD file #57

Open nzurita opened 8 years ago

nzurita commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

@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.