Skip to content
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

How to anonymise data within XML files using Anonimatrion #186

Open
S-Norb opened this issue Feb 1, 2023 · 2 comments
Open

How to anonymise data within XML files using Anonimatrion #186

S-Norb opened this issue Feb 1, 2023 · 2 comments

Comments

@S-Norb
Copy link

S-Norb commented Feb 1, 2023

Hello
I need to anonymize XML file,
I know how to set configuration for anonymizing data in tables, csv files, ...
But I don't know how to set configuration to anonymize data in a XML file
Can you provide me please the syntax or an example of configuration file for anonymizing data within a xml file
Any help is greatly appreciated ?
Thanks
Norbert

@realrolfje
Copy link
Owner

Hello, Anonimatron does not have direct support for XML files. There are a few things you can do however:

  1. Try to transform the xml to csv using xslt and anonymize that file and then transform it back (this looks complicated and may not be the best solution)
  2. Extend/fork Anonimatron to build XML support. Maybe there is a way to have a configuration with xpath pointing to fields which can be anonymized. I haven't thought about this.
  3. Create an XML reader in Java, and use Anonimatron as a dependency in your project.

This all depends on how complicated your XML is, and how generic you want the solution to be. Since the structure of XML documents is not always straightforward, I think it will be quite a challenge to build generic support for it.

I hope this helps a bit.

@S-Norb
Copy link
Author

S-Norb commented Feb 8, 2023

Hello
I thank you a lot for your answer.
We know now that it is not possible to natively anonymize data within XML file
We are working on another way to get this data anonymized
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants