How to limit the Scope of element extraction between the start and end tag of a particular xml element using XPath in Python?
问题 I have an RDF/XML Element and would like to find out all the elements between the start and end of a particular tag. How could I do that? for example : <cim:BaseVoltage rdf:ID="_0526B48408F744919E7C03672FCD0D71"> <cim:BaseVoltage.isDC>false</cim:BaseVoltage.isDC> <cim:BaseVoltage.nominalVoltage>400.000000000</cim:BaseVoltage.nominalVoltage> </cim:BaseVoltage> I would like to extract the values BaseVoltage.isDC and BaseVoltage.nominalVoltage, since they are between the start and end tag of .