Skip to content

fix: Preprocess xml content before sending it to ElementTree parser #3951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mkundu1
Copy link
Contributor

@mkundu1 mkundu1 commented Apr 23, 2025

XMLParser gives a ParseError if there are colons in the tag name. This PR pro-processes the XML content from FLuent's .flprj file to convert double colons to double underscores. E.g. the XML fragment

<ProjectStoragePolicy::FolderEnabled class="string" value="true"/>

will be converted to

<ProjectStoragePolicy__FolderEnabled class="string" value="true"/>

@mkundu1 mkundu1 linked an issue Apr 23, 2025 that may be closed by this pull request
2 tasks
@github-actions github-actions bot added the bug Issue, problem or error in PyFluent label Apr 23, 2025
@mkundu1 mkundu1 force-pushed the fix/preprocess-xml branch from ac86267 to d380c30 Compare April 23, 2025 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue, problem or error in PyFluent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error loading Fluent Parametric project
3 participants