Bonjour,
Je suis en bts iris, je suis en train de réaliser mon projet de fin d'année. Un application(en c++ avec Qt Creator) qui charge un fichier XML (qui contient tous les appels détaillées), généré par le système téléphonique, et qui exploite ce fichier: fonction de recherche, statistiques.
Mon fichier XML est importé dans une base de données Access que j'interroge avec mon application.
Voilà mon problème, voilà une partie de mon fichier XML brut :
Code :
- <?xml version="1.0"?>
- <CallAccountingList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TicketCollector.xsd">
- <CallAccounting xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CAPTicket_V001.001.xsd">
- <OmniPCXOffice>
- <SoftwareVersion>3EH30369CUAA ALZFR510/046.001</SoftwareVersion>
- <CPUIPAddress>192.168.92.245</CPUIPAddress>
- </OmniPCXOffice>
- <Checksum>380140032</Checksum>
- <TicketType>Call</TicketType>
- <InitialUserType>G</InitialUserType>
- <InitialUserID>9</InitialUserID>
- <ChargedUserType>A</ChargedUserType>
- <ChargedUserID>18</ChargedUserID>
- <SubscriberName>JULIEN</SubscriberName>
- <CommunicationType>IncomingTransfer</CommunicationType>
- <TrunkType>N</TrunkType>
- <TrunkID>002</TrunkID>
- <Date>2013-04-04</Date>
- <Time>10:38:00</Time>
- <CallDuration>00:01:18</CallDuration>
- <TaxesAmount>0</TaxesAmount>
- <Service>ST</Service>
- <AdditionalServices>X</AdditionalServices>
- <DialledNumber>00559118410</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>3EH30369CUAA ALZFR510/046.001</SoftwareVersion>
- <CPUIPAddress>192.168.92.245</CPUIPAddress>
- </OmniPCXOffice>
- <Checksum>473982685</Checksum>
- <TicketType>Call</TicketType>
- <InitialUserType>G</InitialUserType>
- <InitialUserID>9</InitialUserID>
- <ChargedUserType>A</ChargedUserType>
- <ChargedUserID>18</ChargedUserID>
- <SubscriberName>JULIEN</SubscriberName>
- <CommunicationType>IncomingTransfer</CommunicationType>
- <TrunkType>N</TrunkType>
- <TrunkID>002</TrunkID>
- <Date>2013-04-04</Date>
- <Time>10:40:00</Time>
- <CallDuration>00:01:22</CallDuration>
- <TaxesAmount>0</TaxesAmount>
- <Service>ST</Service>
- <AdditionalServices>X</AdditionalServices>
- <DialledNumber>0559594339</DialledNumber>
- <DiallingMode>M</DiallingMode>
- <RingingDuration>00:00:01</RingingDuration>
- <Cost>0.00</Cost>
- <Currency>EUR</Currency>
- </CallAccounting> ....
- </CallAccountingList>
|
Je dois le modifier pour obtenir ceci afin de l'intégrer dans ma base de donnée:
Code :
- <?xml version="1.0"?>
- <CallAccountingList>
- <CallAccounting>
- <ChargedUserID>18</ChargedUserID>
- <SubscriberName>JULIEN</SubscriberName>
- <CommunicationType>IncomingTransfer</CommunicationType>
- <Date>2013-04-04</Date>
- <Time>10:38:00</Time>
- <CallDuration>00:01:18</CallDuration>
- <DialledNumber>00559118410</DialledNumber>
- </CallAccounting>
- <CallAccounting>
- <ChargedUserID>18</ChargedUserID>
- <SubscriberName>JULIEN</SubscriberName>
- <CommunicationType>IncomingTransfer</CommunicationType>
- <Date>2013-04-04</Date>
- <Time>10:40:00</Time>
- <CallDuration>00:01:22</CallDuration>
- <DialledNumber>0559594339</DialledNumber>
- </CallAccounting>...
- </CallAccountingList>
|
Je ne connais pas du tout le XSLT, est que quelqu'un peut m'aider s'il vous plait ?
J'ai commencé à faire les modifs du fichier à la main, mais il y a plus de 50000 lignes..