Hello,

I'm french, be indulgent please for my writing

I have this XML file:

Qt Code:
  1. <CallAccounting xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CAPTicket_V001.001.xsd">
  2. <OmniPCXOffice>
  3. <SoftwareVersion>3Efefe1</SoftwareVersion>
  4. <CPUIPAddress>117.168.192.45</CPUIPAddress>
  5. </OmniPCXOffice>
  6. <Checksum>821551922</Checksum>
  7. <TicketType>Call</TicketType>
  8. <InitialUserType>G</InitialUserType>
  9. <InitialUserID>9</InitialUserID>
  10. <ChargedUserType>A</ChargedUserType>
  11. <ChargedUserID>13</ChargedUserID>
  12. <SubscriberName>BEBO</SubscriberName>
  13. <CommunicationType>Incoming</CommunicationType>
  14. <TrunkType>N</TrunkType>
  15. <TrunkID>001</TrunkID>
  16. <Date>2012-12-24</Date>
  17. <Time>14:48:00</Time>
  18. <CallDuration>00:02:12</CallDuration>
  19. <TaxesAmount>0</TaxesAmount>
  20. <Service>ST</Service>
  21. <DialledNumber>0559270461</DialledNumber>
  22. <DiallingMode>M</DiallingMode>
  23. <RingingDuration>00:00:04</RingingDuration>
  24. <Cost>0.00</Cost>
  25. <Currency>EUR</Currency>
  26. </CallAccounting>
To copy to clipboard, switch view to plain text mode 

I want to edit this file to get this:

Qt Code:
  1. <CallAccounting xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CAPTicket_V001.001.xsd">
  2. <TicketType>Call</TicketType>
  3. <ChargedUserID>13</ChargedUserID>
  4. <SubscriberName>BEATRICE</SubscriberName>
  5. <CommunicationType>Incoming</CommunicationType>
  6. <Date>2012-12-24</Date>
  7. <Time>14:48:00</Time>
  8. <CallDuration>00:02:12</CallDuration>
  9. <DialledNumber>0559270461</DialledNumber>
  10. </CallAccounting>
To copy to clipboard, switch view to plain text mode 

I have try QDomNode::removeChild() but i don't know to use it

Help me please !!

Pinjul