-
I have a Soap service that generates a request to the Verifactu service from the Spanish Tax Agency. This service is used to report invoices in XML format. The request works successfully but it generates an XML file with all the tags with an xmlns attribute. I think that this attribute is redundant. Is there any way to prevent the attribute in every tag of the file?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @JoeSixGo, That's by design and I don't think it's a big issue. If you really don't want this, you could also try optimizing the namespaces before sending them through either an encoder decorator or an HTTP middleware by using https://github.com/veewee/xml/blob/4.x/docs/dom.md#optimize_namespaces |
Beta Was this translation helpful? Give feedback.
Hello @JoeSixGo,
That's by design and I don't think it's a big issue.
If you really don't want this, you could also try optimizing the namespaces before sending them through either an encoder decorator or an HTTP middleware by using https://github.com/veewee/xml/blob/4.x/docs/dom.md#optimize_namespaces