Ako vstup mám súbor ktorý obsahuje takýto reťazec
Kód: Vybrať všetko
<spml:modifyResponse executionTime="234"
requestID="e498511d-64b7-4a9c-b885-bfc35f872e3a" result="success"
xmlns:spml="urn:siemens:names:prov:gw:SPML:2:0"
xmlns:subscriber="urn:siemens:names:prov:gw:NVS_SUBSCRIBER:1:0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<version>NVS_SUBSCRIBER_v10</version>
<objectclass>Subscriber</objectclass>
<identifier>ID1234</identifier>
<resultingObject
xmlns:ns2="urn:siemens:names:prov:gw:NVS_SUBSCRIBER:1:0" xsi:type="ns2:Subscriber">
<identifier>ID1234</identifier>
<nvs>
Kód: Vybrať všetko
<spml:modifyResponse executionTime="(?:-|)\d*"
requestID="[^<> ,]*" result="success"
xmlns:spml="urn:siemens:names:prov:gw:SPML:2:0"
xmlns:subscriber="urn:siemens:names:prov:gw:NVS_SUBSCRIBER:1:0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<version>NVS_SUBSCRIBER_v10</version>
<objectclass>Subscriber</objectclass>
<identifier>ID1234</identifier>
<resultingObject
xmlns:ns2="urn:siemens:names:prov:gw:NVS_SUBSCRIBER:1:0" xsi:type="ns2:Subscriber">
<identifier>ID1234</identifier>
<nvs>
-Vlezie do súboru
-Vytvorí nový súbor s tým istým menom ale koncovkou .pattern
-Do nového súboru prekopíruje vstup s tým,že prepíše uvedené znaky
-Zatvorí a posunie sa na ďalší súbor
Nechcem po nikom aby mi to nakódil , len by som ocenil teoretickú pomoc. Ideálne by som to chcel robiť alebo v Jave alebo JSP.