srcML / srcML

srcML Toolkit
srcml.org
GNU General Public License v3.0
119 stars 26 forks source link

libsrcml access and setting of additional attributes #764

Open mjdecker opened 10 years ago

mjdecker commented 10 years ago

At one point I believe we had the ability to access and maybe set additional attributes on a srcml_archive/srcml_unit. This was dropped at some point.

For XPath where unstandard attributes are added, item and those proposed by issue #754, there needs to be support for reading these in and writing them out.

I also think it would be prevalent to have function to access these similar to how namespace works.

Currently, I have this internal structure only having those attributes which are non-standard, i.e. filename will not be contained in this. Anyway, this particular part is up to a point as well as should we add this functionality.

mjdecker commented 8 years ago

What happened to this? I want in srcDiff the ability to add an arbitrary attribute and this is needed above.

Is there code for this, was it taken out?

mjdecker commented 6 years ago

I need this for the authorship stuff now too.