Skip to content

Refacto: Replace manual parsing with XSD parsing for XML VirtualHubs configuration importer#1690

Open
vbochetRTE wants to merge 1 commit intomainfrom
chore/refacto-xml-virtualhubs-importer
Open

Refacto: Replace manual parsing with XSD parsing for XML VirtualHubs configuration importer#1690
vbochetRTE wants to merge 1 commit intomainfrom
chore/refacto-xml-virtualhubs-importer

Conversation

@vbochetRTE
Copy link
Copy Markdown
Collaborator

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • A PR or issue has been opened in all impacted repositories (if any)

Does this PR already have an issue describing the problem?

What kind of change does this PR introduce?

Refactoring

What is the current behavior?

In the current version of the code, XML VirtualHubs configuration files are imported through a manual parsing process: each element of the DOM is read as a generic node.

What is the new behavior (if this is a feature change)?
In the new version of the code, we use XSD file to generate Java classes that represent elements of the XML VirtualHubs configuration document. The content of the file is read and converted to specific Java objects.
This solution also provides more security as an input file that does not match the expected format will be rejected immediately.

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

…configuration importer

Signed-off-by: Vincent BOCHET <vincent.bochet@rte-france.com>
@vbochetRTE vbochetRTE added the PR: waiting-for-review This PR is waiting to be reviewed label Apr 9, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 9, 2026

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

Labels

PR: waiting-for-review This PR is waiting to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant