Fast file shredder system and method
A fast file shredder system has a state machine that converts a large XML file into a number of flat files. The state machine uses a serial access parser that parses the XML and places the appropriate parts of the XML file data into one of several flat files. When the state machine encounters a trigger element in the XML file, the state machine transitions to another state and starts writing portions of the XML file data into another of the flat files.
1 . A fast file shredder system, comprising:
an input hierarchical file having a plurality of sections;
a state machine having a plurality of states, one of the plurality of states for each of the plurality of sections of the input hierarchical file; and
a plurality of output flat files created by the state machine.
2 . The system of claim 1 , wherein the state machine has a transition trigger that causes the state machine to transition from one of the plurality of states to a second of the plurality of states.
3 . The system of claim 2 , wherein the transition trigger has a trigger definition that defines a trigger element.
4 . The system of claim 3 , wherein the input hierarchical file includes the trigger element.
5 . The system of claim 1 , further including a wizard for defining the state machine.
6 . The system of claim 5 , wherein the wizard defines a trigger element.
7 . A fast file shredding method, comprising the steps of:
a) defining an input hierarchical file;
b) processing the input hierarchical file using a state machine; and
c) outputting a plurality of flat files created by the state machine.
8 . The method of claim 7 , wherein step (a) further including the step of:
a1) specifying an XML file.
9 . The method of claim 7 , wherein step (b) further includes the steps of:
b1) creating a sample XML instance of the input hierarchical file;
b2) creating the state machine using a wizard.
10 . The method of claim 9 , wherein step (b2) further includes the step of:
defining a transition trigger.
11 . The method of claim 7 , wherein step (b) further includes the step of:
b1) parsing the input hierarchical file using a serial access parser.
12 . The method of claim 11 , further including the steps of:
b2) defining a record delimiter.
13 . A fast file shredder system, comprising:
an input XML file having two sections;
a state machine having two states, each of the two states corresponding to the two sections of the input XML file; and
a pair of output flat files created by the state machine.
14 . The system of claim 13 , wherein the state machine includes a serial access parser.
15 . The system of claim 14 , further including a wizard for defining the state machine.
16 . The system of claim 15 , further including a sample XML instance called by the wizard.
17 . The system of claim 14 , wherein the state machine has a transition trigger that causes the state machine to transition from one of the plurality of states to a second of the plurality of states.
18 . The system of claim 17 , wherein the transition trigger has a trigger definition that defines a trigger element.
19 . The system of claim 18 , wherein the input hierarchical file includes the trigger element.