Repository navigation
|
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? |
Answered by
veewee
May 29, 2025
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 |
1 reply
Answer selected by
JoeSixGo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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