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

REXML changes quote type #74

Open
tangopium opened this issue May 12, 2021 · 5 comments
Open

REXML changes quote type #74

tangopium opened this issue May 12, 2021 · 5 comments

Comments

@tangopium
Copy link

I work with signed XML files and I'm trying to read an XML file with REXML and extract a Node which I then verify against a signature. My problem is, that REXML changes the double quotes to single quotes in the XML. Everything else (such as spaces, etc) is properly kept. Unfortunately, I can not say if an XML comes with single, double, or even mixed quotes. Is there a way to get an unchanged XML from a Node/Element?

@kou
Copy link
Member

kou commented May 12, 2021

Do you sign XML files or do you just receive XML files signed by others?

Different quotations are logically equal in XML. Can you normalize XML before signing?

@tangopium
Copy link
Author

I just receive the XML and unfortunately have no control over the signing process.

@kou
Copy link
Member

kou commented May 12, 2021

How do others sign XML? XML Signature?

@tangopium
Copy link
Author

Probably different options: xmlsec1, java, etc

@kou
Copy link
Member

kou commented May 12, 2021

How do you verify a signature? Are you using xmlsec1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants