Previously, I had a lot of problems with parsining of XML element with XOM library. The problem was that the XML Element should be written in a single line, as in example "first" group or 3 line as in "second" group.
If the elements "name", "rating" is recorded in 3 lines we have are problems. But in both cases, the XML document is valid. Please give advice on how to better parse element which is written in 3 lines. How best to remove the LFCR, TAB, SPACE chars in string inside XML element.
<?xml version="1.0" encoding="UTF-8"?> <dataroot> <group g_name="first" option="Phone"> <name>TAXI Rocet</name> <rating>55</rating> </group> <group g_name="second" option="Phone"> <name> TAXI Speed </name> <rating> 34 </rating> </group> </dataroot>