C
Chuck Bowling
Up front, i'm not very good with serialization and i'm not quite sure what
capabilities it has.
I have an app that outputs a text file with this format:
<root>
\t <node1>
\t\t text...
\t <\node1>
\t <node2>
\t\t text...
\t <\node2>
</root>
The tags and text for node1 and 2 are generated in the classes Node1 and 2.
The Root class adds root tags and tab formatting to the inner Nodes and
text. The Node classes add an additional layer of tab formatting to their
respective content.
Does it make sense to try and make the outer and inner classes serializable?
If so, how would i add the padding in the parent class?
capabilities it has.
I have an app that outputs a text file with this format:
<root>
\t <node1>
\t\t text...
\t <\node1>
\t <node2>
\t\t text...
\t <\node2>
</root>
The tags and text for node1 and 2 are generated in the classes Node1 and 2.
The Root class adds root tags and tab formatting to the inner Nodes and
text. The Node classes add an additional layer of tab formatting to their
respective content.
Does it make sense to try and make the outer and inner classes serializable?
If so, how would i add the padding in the parent class?