Midified the xml file using DomDocument object?
Have a file.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Document xmlns="urn:iso:std">
<content>
<GrpHdr>
<MsgId>xxxxxx </MsgId>
<CreDtTm>2010-07-05T16:48:00</CreDtTm>
<BtchBookg>false</BtchBookg>
<NbOfTxs>2</NbOfTxs>
<CtrlSum>56653</CtrlSum>
<Grpg>Old</Grpg>
<InitgPty>
<Nm> Name </Nm>
</InitgPty>
</GrpHdr>
</content>
<Document>
How can modified the xml data and save back to file.xml (for example )
<NbOfTxs>1</NbOfTxs>
<CtrlSum>1223</CtrlSum>
<Grpg>NEW</Grpg>