Jump to content

Removing a Tag in XPath


Recommended Posts

I want to remove the 'noMods' tag from the nailgun without overwriting the 'Tags' property entirely.

 

The only way I know how to do it is this:

<set xpath="/items/item[@name='meleeToolRepairT3Nailgun']/propery[@name='Tags']/@value">tool,nailgun,sideAttachments,repairTool,attStrength,perkMiner69r,canHaveCosmetic</set>

 

The problem is that would overwrite any tag changes from other mods.  I know we have a 'contains' function to find substring matches, and a quick Google search tells me that XPath has other string functions (substring, substring-before, substring-after, concat, replace).  I don't know how to use anything but 'contains'.  Are they even implemented for 7 Days?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...