Major advantage of the XAR format is that it is extensible because the TOC that describes its structure is XML. As a developer I'd like to be able to add custom XML to the 'file' stanzas in the XAR TOC and then be able to quickly analyze the XAR TOC and the custom XML stanzas.
Implementation Note:
-
We'd like to be able to modify TocFile (https://github.com/gino0631/xar/blob/master/xar-core/src/main/java/com/github/gino0631/xar/impl/jaxb/toc/TocFile.java) to use the JAXB '@XmlAnyElement' facility.
-
Need to provide an API so that when XAR files and directories are added to the archive custom JAXB elements would be added to the TocFile structure. These custom JAXB elements would then be serialized/deserialized with the TocFile data structure.
-
Provide a mechanism to customize the JAXB Context that is used to serialize/deserialize the TOC.
-
Provide an API for examining the TOC and retrieving the custom XML elements.
Major advantage of the XAR format is that it is extensible because the TOC that describes its structure is XML. As a developer I'd like to be able to add custom XML to the 'file' stanzas in the XAR TOC and then be able to quickly analyze the XAR TOC and the custom XML stanzas.
Implementation Note:
We'd like to be able to modify TocFile (https://github.com/gino0631/xar/blob/master/xar-core/src/main/java/com/github/gino0631/xar/impl/jaxb/toc/TocFile.java) to use the JAXB '@XmlAnyElement' facility.
Need to provide an API so that when XAR files and directories are added to the archive custom JAXB elements would be added to the TocFile structure. These custom JAXB elements would then be serialized/deserialized with the TocFile data structure.
Provide a mechanism to customize the JAXB Context that is used to serialize/deserialize the TOC.
Provide an API for examining the TOC and retrieving the custom XML elements.