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.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -