The XmlAttachment provides the tooltips via AddProperties(ObjectPropertyList) - it's either a string containing escaped quotes, or a cliloc number that you'll have to swap out for one that doesn't have quotes embedded.
Now I have a new question, this is how items look when spawned in the world;
If no sockets present but allowed:
If both allowed and present:
However when one is allowed but not present and you add a socket you get this:
It reverses the text, I assume because it's just "adding" to the list, is there a way to sort said list so it matches? Not a huge deal just bugs me lol..