i want to make a file parser and interpreter for a markup language such as HTML, CFML (more like CFML).
i justed wanted to get your opinion on what the easiest way to go about this is and why???
for example you have a HTML file with the following content:
<HTML>
<!-- forget the head we just want page output -->
<BODY>
<P>
<FONT COLOR="red"> How are you? </FONT>
</P>
</BODY>
</HTML>
After you read this file into your java program it should output "How are you?". The text should be red. This would displayed in a frame or something, it doesn't matter the main thing is the actual parsing.
NOTE: beforeu tell me to use the built-in Java HTML parser remember i am not trying to parse and interpert HTML. it is another markup-language. this is just as an example to get an idea on how to parse.
Any advice on just techniques without code would also help. Thanks to all.
i justed wanted to get your opinion on what the easiest way to go about this is and why???
for example you have a HTML file with the following content:
<HTML>
<!-- forget the head we just want page output -->
<BODY>
<P>
<FONT COLOR="red"> How are you? </FONT>
</P>
</BODY>
</HTML>
After you read this file into your java program it should output "How are you?". The text should be red. This would displayed in a frame or something, it doesn't matter the main thing is the actual parsing.
NOTE: beforeu tell me to use the built-in Java HTML parser remember i am not trying to parse and interpert HTML. it is another markup-language. this is just as an example to get an idea on how to parse.
Any advice on just techniques without code would also help. Thanks to all.