ruby / ruby/rexml

REXML changes quote type

Open
#74 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
182
Forks
99
Avg merge
2d 23h
Merged PRs (30d)
8

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining REXML's Node/Element serialization and parsing behavior; the issue does not name specific source files or tests. Compare serialized output with the original signed XML and determine whether preserving quote style is an expected parser capability; completion criteria are not defined in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
backend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.