Build an HTML anchor tag with the attributes you need.
Turn lines of text into an ordered or unordered HTML list
Convert XML into JSON, keeping attributes
Flatten JSON into Java-style .properties lines