Commit 67a5899d authored by Nicolas Delaby's avatar Nicolas Delaby

parse with configured parser

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29473 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3b82db91
...@@ -648,7 +648,7 @@ class ERP5Conduit(XMLSyncUtilsMixin): ...@@ -648,7 +648,7 @@ class ERP5Conduit(XMLSyncUtilsMixin):
""" """
if xml is not None and new_id is not None: if xml is not None and new_id is not None:
if isinstance(xml, str): if isinstance(xml, str):
xml = etree.XML(xml) xml = etree.XML(xml, parser=parser)
#copy of xml object for modification #copy of xml object for modification
from copy import deepcopy from copy import deepcopy
xml_copy = deepcopy(xml) xml_copy = deepcopy(xml)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment