[Simple-support] XML file path in deserialized objects
Brought to you by:
niallg
|
From: Jens W. <jw...@to...> - 2012-04-10 09:35:50
|
Hi there,
how can I get the xml file path (or object) in deserialized objects?
For example:
Test obj = serializer.read(Test.class, new File("test.xml"));
@Root
public class Test implements Serializable {
@Attribute
private String id;
@File
private File file; // This should contain the file path or object of the xml file
public String getId() {
return id;
}
}
Thanks and
best regards
Jens
|