I am reading a file that is in xml format (has elements, attribute,..). However, the contents in the file have no carriage return or space and all the contents are in one line.
I am searching for an element and will need to parse the value of the element.
I am thinking to use XMLStreamReader to read and parse the value.
Does it matter if the contents are in all in one line? Or, is there another way I should look into?
Thanks.
No it doesn’t matter that all the contents are on one line – whitespace such as carriage returns will be ignored by XML parsers!