sax parser stringbuilder only returning one line [duplicate]
问题 This question already has an answer here : Java Sax Parser only returning one line of a tag (1 answer) Closed 6 years ago . I've tried using a StringBuilder named object, but I'm still not getting all the CDATA from the description tag.The xml is located at Events-Ovations365: Basically it only gets the CDATA on one line: img is :http://www.ovations365.com/sites/ovations365.com/images/org/81/newtown_medium.jpg alt="Ocmulgee Heritage Trail Ribbon Cutting"> package com.example.ovations_proj;