import lxml.etree as etree # 追加・更新関数 class PathManipulator: @staticmethod def custom_split(xpath, sep='/'): result = [] in_quotes = False start = 0 for i, char in enumerate(xpath): if char in ('"', "'"): in_quotes = not in_quotes elif char in sep and not in_quotes: result.append(xpath[start:i]) star…