gazebosim / gazebosim/sdformat
ToElement methods do not export data from custom xml namespaces
- Dominant language
- C++
- Stars
- 216
- Forks
- 125
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 14
Description
## Environment
* OS Version: any
* Source or binary build? any
## Description
* Expected behavior: if you have an SDFormat file with data in custom XML namespaces (like [custom_elems_attrs.sdf](https://github.com/gazebosim/sdformat/blob/sdf13/test/integration/custom_elems_attrs.sdf)), if you load the file into an `sdf::Root` and then write it out again with `Root::ToElement()`, the resulting Element-tree should also have the custom data fields.
* Actual behavior: it does not include the custom data fields.
## Steps to reproduce
1. TODO: write code to reproduce this
2.
3.
## Output
Contributor guide
Research direction
Use test/integration/custom_elems_attrs.sdf as the input and inspect the Root::ToElement() call path. Add a focused reproduction for loading that file and converting it back to an Element-tree. Done means custom XML namespace data is present in the resulting tree.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, xml
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100