public static LiveChannelInfo parseGetLiveChannelInfo(InputStream responseBody) throws ResponseParseException {
  try {
    Element root=getXmlRootElement(responseBody);
    LiveChannelInfo result=new LiveChannelInfo();
    result.setDescription(root.getChildText("Description"));
    result.setStatus(LiveChannelStatus.parse(root.getChildText("Status")));
    Element targetElem=root.getChild("Target");
    LiveChannelTarget target=new LiveChannelTarget();
    target.setType(targetElem.getChildText("Type"));
    target.setFragDuration(Integer.parseInt(targetElem.getChildText("FragDuration")));
    target.setFragCount(Integer.parseInt(targetElem.getChildText("FragCount")));
    target.setPlaylistName(targetElem.getChildText("PlaylistName"));
    result.setTarget(target);
    return result;
  }
 catch (  Exception e) {
    throw new ResponseParseException(e.getMessage(),e);
  }
}

public static LiveChannelInfo parseGetLiveChannelInfo ( InputStream responseBody ) throws ResponseParseException { try { Element root = getXmlRootElement ( responseBody ) ; LiveChannelInfo result = new LiveChannelInfo ( ) ; result . setDescription ( root . getChildText ( "Description" ) ) ; result . setStatus ( LiveChannelStatus . parse ( root . getChildText ( "Status" ) ) ) ; Element targetElem = root . getChild ( "Target" ) ; LiveChannelTarget target = new LiveChannelTarget ( ) ; target . setType ( targetElem . getChildText ( "Type" ) ) ; target . setFragDuration ( Integer . parseInt ( targetElem . getChildText ( "FragDuration" ) ) ) ; target . setFragCount ( Integer . parseInt ( targetElem . getChildText ( "FragCount" ) ) ) ; target . setPlaylistName ( targetElem . getChildText ( "PlaylistName" ) ) ; result . setTarget ( target ) ; return result ; } catch ( Exception e ) { throw new ResponseParseException ( e . getMessage ( ) , e ) ; } }
unmarshall get live channel info response body to corresponding result .
