I'm taking the lines of code for my Java project , the project contains lot of XML files too. Now my question is when calculating lines of code. Do i need to consider XML lines of code as well? Please help
IMO counting lines of code is a terrible quality metric. I consider it a great day when I remove hundreds of lines of code.
However answering your question. if your XML is handwritten and represents metadata that configures your application then yes I'd consider it to be code.