Greetings!
I have attached a couple of files to backup this post...
The problem i'm currently having is that I have an xml-structure, a result from a flex application.
the structure of the xml can change constantly, so I don't know how many nodes will be in the xml...
while the xml is being parsed, I should take the information located in the style-attribute of the current node and place the necessary information like font-size, font face etc in the right place and create a string like in the IndesignStylesheet.txt...
So:
loop trough every node, check for childnodes as deep as you can...
filter out the style attribute and create a string like in the IndesignStylesheet.txt file...
don't need a fully working/finished code, but a recursive function would be awesome!!
Thanks you guys!
Mario
I have attached a couple of files to backup this post...
The problem i'm currently having is that I have an xml-structure, a result from a flex application.
the structure of the xml can change constantly, so I don't know how many nodes will be in the xml...
while the xml is being parsed, I should take the information located in the style-attribute of the current node and place the necessary information like font-size, font face etc in the right place and create a string like in the IndesignStylesheet.txt...
So:
loop trough every node, check for childnodes as deep as you can...
filter out the style attribute and create a string like in the IndesignStylesheet.txt file...
don't need a fully working/finished code, but a recursive function would be awesome!!
Thanks you guys!
Mario
Attachments
Last edited by a moderator: