I am serializing a class using simple-xml (http://simple.sourceforge.net/) but when i try to use @Element on a Point object i get an error, how can i transform this Point object?
I am serializing a class using simple-xml ( http://simple.sourceforge.net/ ) but when i try
Share
You can create a transform like so
Then pass in a Matcher to the Persister constructor so that it can resolve your Transform given the class. Transforms are used for primitives only, like attribute or text values. They should not be used to compose XML, as it will only get escaped when written to the resulting document. Best to use annotations like so.