On Feb 3, 2006, at 8:47 AM, Aleš Pour wrote:
> Hello,
>
> I can't figure out nor find an example how to convert a XML to FI
> with encoded primitive types, is this feasible with current release
> (1.0.1)? Thank you!
If you're asking if we have a tool to do that automatically, the
answer is no. Such a tool would require external knowledge (e.g.
schema info) to convert things properly, and we don't have that at
the moment. However, the FI SAX serializer,
com.sun.xml.fastinfoset.sax.SAXDocumentSerializer
does support this functionality by implementing the interface,
org.jvnet.fastinfoset.sax.PrimitiveTypeContentHandler
Thus, you can still use this in your application. Similarly, in a
SAXDocumentParser you can register an instance of a
PrimitiveTypeContentHandler to receive events related to the
primitive types at parse time.
Hope that helps.
-- Santiago