Python 2.5: ElementTree and UML in XML

前端 未结 2 627
我在风中等你
我在风中等你 2021-01-25 19:58

I\'m working with an XML file which represent an UML model. Here is an example of what it is:




        
2条回答
  •  孤城傲影
    2021-01-25 20:24

    see this page:http://effbot.org/zone/element-namespaces.htm

    ElementTree 1.3 (Python 2.7)

    ET.register_namespace(prefix, uri)

    ElementTree 1.2 (Python 2.5)

    ET._namespace_map[uri] = prefix

提交回复
热议问题