We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using this parser to parse a SAML AuthResponse am unable to remove all the namespaces. Here is a short script to demonstrate the problem.
local xml = require("xml") local data = xml.load [[ <samlp:Response ID='_cefdb557d60e0ba08b37' IssueInstant='2015-09-02T05:45:46Z' Destination='http://rebelsoft.com:81/saml/acs' xmlns:samlp='urn:oasis:names:tc:SAML:2.0:protocol' Version='2.0'> <saml:Issuer xmlns:saml='urn:oasis:names:tc:SAML:2.0:assertion'>http://rebelsoft.com:81</saml:Issuer> </samlp:Response> ]] xml.removeNamespace(data, 'urn:oasis:names:tc:SAML:2.0:protocol') xml.removeNamespace(data, 'urn:oasis:names:tc:SAML:2.0:assertion') print(xml.dump(data))
In this demo, the first removeNamespace() works, but not the second one.
The text was updated successfully, but these errors were encountered:
I think the problem is in https://github.com/lubyk/xml/blob/master/xml/init.lua After line 237 we need this
if type(v) == "table" then lib.removeNamespace(v, key) end
Sorry, something went wrong.
@mingfang Could you create a test and a pull request ?
No branches or pull requests
I'm using this parser to parse a SAML AuthResponse am unable to remove all the namespaces.
Here is a short script to demonstrate the problem.
In this demo, the first removeNamespace() works, but not the second one.
The text was updated successfully, but these errors were encountered: