Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 xml,它的数据需要以不同的格式提取到另一个 xml 中。要映射的字段由 xsl 提供。我需要使用此 xsl 映射测试应用程序完成的 xml 转换是否正确。xmls 非常大,运行到 GB 大小,因此我更喜欢使用 python 的 lxml 中的 iterparse。如何使用 lxml 将 2 个 xml 与 xsl 中提供的映射进行映射?