Here ya go. Good idea, pretty handy to have around.
I made it so it can grab data from a block with attributes. Our typical equipment tag block has attributes for the top line and bottom line, so this will combine those into a string.
Also, I always tag my fab parts equipment using item number, so I threw that in there using a temp script but I commented it out since you only asked for CDATA. This can be used to write to any other writable property.
Specify your attribute tags, property, and CDATA index in the beginning of the lisp.
(I tried posting inline instead of as attachment, but I was getting a forum error. Code is too long maybe?)