Hi
I am new to Perl, could you please help in how to open a XML file and append data to it.
XML File:
<?xml version="1.0" encoding="ASCII"?>
<componentmanifest.application:ApplicationConfigur ation xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:componentmanifest.application="http:///componentmanifest/application.ecore" xmlns:componentmanifest.description="http:///componentmanifest/description.ecore" xmi:id="ApplicationConfiguration">
<description xmi:id="MediaRootProcessAppConfig.hbac_Description ">
<delegationPoints xsi:type="componentmanifest.description:PortDescri ption" xmi:id="Using_api/sys/data/pf/engineering/src/DSYSEngineeringApp_3.0.0_Engineering" name="Engineering" incomingConnectors="_i0teQLTvEd-_huZVa1DFhQ">
<interface href="mocca:imp/nbt/mm/mmdebuginfo/src/PMMDebugInfoDevImplManifest.hbcm#api/sys/data/pf/engineering/src/DSYSEngineeringApp_3.0.0"/>
</delegationPoints>
<parameterProviders xsi:type="componentmanifest.description:ExternalPa rameterInitialization" xmi:id="_9oV2cM89Ed6JTfPP1OWyvQ">
<requiredParameter href="mocca:appconfigs/qnxintel/subsystems/NBTCommcoSubsystem.hbsc#ParameterReference_MmeGlob alBaseDevCtrl_Config"/>
</parameterProviders>
<connectors xsi:type="componentmanifest.description:AssemblyCo nnector" xmi:id="_TUlewGyiEd-vxOnUAC_0Ig">
<source href="mocca:appconfigs/qnxintel/subsystems/NBTPresCtrlSubSystem.hbsc#PortReference_Multimedia PlayerFront_Using_api/mm/media/pf/src/DMMPlayerNav_6.0.0_PlayEngineZone1"/>
<target href="mocca:appconfigs/qnxintel/subsystems/NBTCommcoSubsystem.hbsc#PortReference_PlayEngineZo ne1_Providing_api/mm/media/pf/src/DMMPlayerNav_6.1.0"/>
</connectors>
</description>
<deployments xsi:type="componentmanifest.application:Applicatio nDeployment" xmi:id="_LPnLMM5_Ed6Bfp5E6XnJKw" name="Default">
<processes xmi:id="_Pn-6AM7JEd6IY6dYC1rnCA" name="NBTMediaMainApp" comment="">
<dsiThreads xmi:id="_VRqzAM9QEd6g88g4Gh8Y2w">
<send xmi:id="_VRqzAc9QEd6g88g4Gh8Y2w" watchdogTimeout="60000"/>
<receive xmi:id="_VRqzAs9QEd6g88g4Gh8Y2w" watchdogTimeout="60000"/>
</dsiThreads>
<subSystems href="mocca:appconfigs/qnxintel/subsystems/NBTPresCtrlSubSystem.hbsc#SubSystemDeployment"/>
<subSystems href="mocca:appconfigs/qnxintel/subsystems/NBTCommcoSubsystem.hbsc#SubSystemDeployment"/>
<subSystems href="mocca:appconfigs/qnxintel/subsystems/NBTMediaOnOffSubsystem.hbsc#SubSystemDeployment"/>
</processes>
<frameworkConfig xmi:id="_LBonAEVwEeCktOQek5zViA" watchdogWarningLimit="75" frameworkThreadPartitionName="interaction">
<tracePersistence xmi:id="_RXZPMEVwEeCktOQek5zViA" headerFile="api/sys/tracesrv/pf/trace/src/CHBDefaultBinaryTracePersistence.hpp" className="CHBDefaultBinaryTracePersistence"/>
<defaultThreadParameters xmi:id="_b8gMsEVwEeCktOQek5zViA" watchdogTimeout="100" stackSize="32768">
<priorities xmi:id="_fZ784EVwEeCktOQek5zViA" priorityValue="10" isAbsolute="true"/>
<priorities xmi:id="_g0PXsEVwEeCktOQek5zViA" isAbsolute="true" osFamily="WIN32"/>
</defaultThreadParameters>
</frameworkConfig>
<rootComponent href="mocca:appconfigs/qnxintel/subsystems/NBTMediaOnOffSubsystem.hbsc#DeployedComponent_Mult imediaOnOffComponent"/>
</deployments>
</componentmanifest.application:ApplicationConfigura tion>
DATA TO BE ADDED at their respective tags:
<delegationPoints xsi:type="componentmanifest.description:PortDescri ption" xmi:id="Providing_api/nbt/mm/common/src/MmeCommon_3.2.0_MmeCommon" name="MmeCommon" incomingConnectors="_UUFLQJmmEeGK0NAOkJ-nZw" provider="true">
<interface href="mocca:imp/nbt/mm/mmecommon/src/MmeCommonManifest.hbcm#api/nbt/mm/common/src/MmeCommon_3.2.0"/>
</delegationPoints>
<connectors xsi:type="componentmanifest.description:Delegation Connector" xmi:id="_UUFLQJmmEeGK0NAOkJ-nZw" target="Providing_api/nbt/mm/common/src/MmeCommon_3.2.0_MmeCommon">
<source href="mocca:appconfigs/qnxintel/subsystems/NBTPresCtrlSubSystem.hbsc#PortReference_MmeCommon_ Providing_api/nbt/mm/common/src/MmeCommon_3.2.0"/>
</connectors>