def getFirstPlist(textString):
    """Gets the next plist from a set of concatenated text-style plists.
    Returns a tuple - the first plist (if any) and the remaining
    string"""
    plistStart = textString.find('<?xml version')
    if plistStart == -1:
        # not found
        return ("", textString)
    plistEnd = textString.find('</plist>', plistStart + 13)
    if plistEnd == -1:
        # not found
        return ("", textString)
    # adjust end value
    plistEnd = plistEnd + 8
    return (textString[plistStart:plistEnd], textString[plistEnd:])