lbellonda / qxmledit

QXmlEdit XML editor. Downloads: https://sourceforge.net/projects/qxmledit/files
http://qxmledit.org
Other
160 stars 46 forks source link

Anonymize --> exception for attributes: xpath exepression for selecting all attributes doesn't work #53

Closed aikyde closed 5 years ago

aikyde commented 5 years ago

Please see files screens/attached: anonymization exceptions for all attributes named "description" are not applied

image

image

aikyde commented 5 years ago

food_example.ZIP

lbellonda commented 5 years ago

Sorry, the documentation is not exact, the Path field is not supporting a full XPath, but a XPath syntax with explicit element path.

If you add exception for attributes using the UI, you will find that the exception data are using the full path of the element. At the moment only full paths are supported. It will be better to call it simply a "Path" as in the column title of the exception list.

Anyway in the attached sample there is no "description" attribute.

aikyde commented 5 years ago

Oops.. you're right, sorry for the wrong example file(

And thank you for clarifying this quickly! It would be nice to get a full XPath support someday since it could potentially save a lot of efforts when configuring profiles... :)

Anyway thank you for the great tool!

lbellonda commented 5 years ago

It would be nice to get a full XPath support someday

It would be nice, but with full paths it is simpler to use streaming to process very huge files without memory problems. The UI is used to create profiles to be executed in batch (Tools/Anonymize File).