in reply to How to count lines of code for XML file?

Define "line" for this exercise? How many lines do you see in the each of the following?

<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <title>stuff</title> </head> <body> <div> <para>more stuff</para> </div> </body> </html>

<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <title> stuff </title> </head> <body> <div> <para> more stuff </para> </div> </body> </html>

<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html><head><title>stuff</title></head><body><div><para>more stuff</pa +ra></div></body></html>

Is your answer the same for each, or different?

If it's the same what is the value of the metric?

If it's different what is the value of the metric?

In other words, what are you trying to measure?


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller