xslt - Lines of Strings to XML tree structure -
this question exact duplicate of:
lets in notepad: have following text :
first line: a\b\c second line: a\b\c\d
how can make xml tree structure of 2 lines without duplicating , b, , c - new character not have duplicates-which in case letter "d", shall added child last character has same value is, in case letter "c" –
this seems pretty straightforward. each line, check see whether there top level node first symbol , create 1 if there not. each subsequent symbol, again check existence , create child node if needed. repeat on each line. whole thing reminds me of -p
option mkdir
command.