I want to parse a simple XML Doc and create simple syntax coloring...
<parent>
<child>Value</child>
<child>
<grandchild>Value2</grandchild>
</child>
</parent>
So all the < and > are blue The node names are red and the value is black.
I was wondering if anyone had a good regex do this? Right now I am using a forloop and going character by character.... don't really think that is the best way so looking for ideas.
My XML will be simple, won't ever have attributes, just a simple pattern like the above example. I would like to convert it to html.
Ideas?