REXML changes quote type

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

Nobody has claimed this yet.

Assessment

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

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.

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?

Dominant language
Ruby
Stars
181
Forks
105
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from ruby/rexml

All issues in ruby/rexml

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.