我是php和xml的新手,我有一个看起来像这样的文件。我想要:
HydroGeneratingUnit
而不是GeneratingUnit
cim:IdentifiedObject.description
值设为24
(而不是30
)。我该怎么做?
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF>
<cim:GeneratingUnit rdf:ID="_GU_WHVSGRGX_1_W">
<cim:IdentifiedObject.name>_GU_WHVSGRGX_1</cim:IdentifiedObject.name>
<cim:IdentifiedObject.description>30</cim:IdentifiedObject.description>
<cim:Equipment.MemberOf_EquipmentContainer rdf:resource="#_VL__TN_WHVSGRGXT_C" />
<cim:GeneratingUnit.maxOperatingP>105</cim:GeneratingUnit.maxOperatingP>
<cim:GeneratingUnit.minOperatingP>60</cim:GeneratingUnit.minOperatingP>
<cim:GeneratingUnit.nominalP>105</cim:GeneratingUnit.nominalP>
</cim:GeneratingUnit>
</rdf:RDF>