xml parsing - parse through nested xml -
i have rather extensive question, me til end.
consider following:
have given xml file, looks
<?xml version="1.0" encoding="utf-8"?> <format> <bold> hi, bold text <underline> underlined </underline> , <italic> italic </italic> segments. </bold> </format>
what environments intend, should clear: within bold environment, should written bold, within bold , italic, should written bold , italic , on. hope idea.
what want now, parse xml file in order set textstyle every segment, can formatted afterwards. have problems e.g. nested use of bold. how handle problem?
idea have gotten use stack , push style onto stack long not being closed in xml , remove otherwise. have no idea how implement 1 either.
thank in advance, newbie
Comments
Post a Comment