openframeworks / openframeworks/openFrameworks

ofxXml parse error

Open
#5,192 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

hello,

i am using ofxGui

When i set

ofParameter<bool> bGrid;
params.add(bGrid.set("4 images", false));

i have this error in the console output when trying to save or load xml file
[ error ] ofXml: parse error: Invalid token in line 3 column 3

XML file is saved as it should though, but the parameter value won't load.

changing the following fixes the problem

params.add(bGrid.set("use grid", false));

Using OF 0.9.3 under OSX El Capitan and XCode 7

Contributor guide

Open the contributing guide

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

Reproduce the issue with the shown ofParameter, params.add, and ofXml save/load sequence under OF 0.9.3, comparing the labels "4 images" and "use grid". Start at the ofXml parse-error path and determine why the first label produces an invalid token. Done means both labels save and reload without a parse error and the parameter value is restored.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.