Hello,
I'm french, be indulgent please for my writing
I have this XML file:
<CallAccounting xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CAPTicket_V001.001.xsd">
<OmniPCXOffice>
<SoftwareVersion>3Efefe1</SoftwareVersion>
<CPUIPAddress>117.168.192.45</CPUIPAddress>
</OmniPCXOffice>
<Checksum>821551922</Checksum>
<TicketType>Call</TicketType>
<InitialUserType>G</InitialUserType>
<InitialUserID>9</InitialUserID>
<ChargedUserType>A</ChargedUserType>
<ChargedUserID>13</ChargedUserID>
<SubscriberName>BEBO</SubscriberName>
<CommunicationType>Incoming</CommunicationType>
<TrunkType>N</TrunkType>
<TrunkID>001</TrunkID>
<Date>2012-12-24</Date>
<Time>14:48:00</Time>
<CallDuration>00:02:12</CallDuration>
<TaxesAmount>0</TaxesAmount>
<Service>ST</Service>
<DialledNumber>0559270461</DialledNumber>
<DiallingMode>M</DiallingMode>
<RingingDuration>00:00:04</RingingDuration>
<Cost>0.00</Cost>
<Currency>EUR</Currency>
</CallAccounting>
<CallAccounting xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CAPTicket_V001.001.xsd">
<OmniPCXOffice>
<SoftwareVersion>3Efefe1</SoftwareVersion>
<CPUIPAddress>117.168.192.45</CPUIPAddress>
</OmniPCXOffice>
<Checksum>821551922</Checksum>
<TicketType>Call</TicketType>
<InitialUserType>G</InitialUserType>
<InitialUserID>9</InitialUserID>
<ChargedUserType>A</ChargedUserType>
<ChargedUserID>13</ChargedUserID>
<SubscriberName>BEBO</SubscriberName>
<CommunicationType>Incoming</CommunicationType>
<TrunkType>N</TrunkType>
<TrunkID>001</TrunkID>
<Date>2012-12-24</Date>
<Time>14:48:00</Time>
<CallDuration>00:02:12</CallDuration>
<TaxesAmount>0</TaxesAmount>
<Service>ST</Service>
<DialledNumber>0559270461</DialledNumber>
<DiallingMode>M</DiallingMode>
<RingingDuration>00:00:04</RingingDuration>
<Cost>0.00</Cost>
<Currency>EUR</Currency>
</CallAccounting>
To copy to clipboard, switch view to plain text mode
I want to edit this file to get this:
<CallAccounting xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CAPTicket_V001.001.xsd">
<TicketType>Call</TicketType>
<ChargedUserID>13</ChargedUserID>
<SubscriberName>BEATRICE</SubscriberName>
<CommunicationType>Incoming</CommunicationType>
<Date>2012-12-24</Date>
<Time>14:48:00</Time>
<CallDuration>00:02:12</CallDuration>
<DialledNumber>0559270461</DialledNumber>
</CallAccounting>
<CallAccounting xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CAPTicket_V001.001.xsd">
<TicketType>Call</TicketType>
<ChargedUserID>13</ChargedUserID>
<SubscriberName>BEATRICE</SubscriberName>
<CommunicationType>Incoming</CommunicationType>
<Date>2012-12-24</Date>
<Time>14:48:00</Time>
<CallDuration>00:02:12</CallDuration>
<DialledNumber>0559270461</DialledNumber>
</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
Bookmarks