def ParserTOC(obj):
    """The NCX file parsing"""
    result = []
    nav_points = obj.content.getElementsByTagName('navPoint')
    for np in nav_points:
        order = np.getAttribute('playOrder')
        chapter = np.getElementsByTagName('navLabel').item(0
            ).getElementsByTagName('text').item(0).firstChild.nodeValue
        result.append({'order': order, 'chapter': chapter})
    return result
