Whatever one may think of Java it has a lot of infrastructure (e.g., libraries and tools) associated with it.
One support library/tool set that I've found especially useful is Java XML data binding libraries (e.g., I use Oracle's [previously Sun's] JAXB library).
For those unfamiliar with the concept, an XML data binding library allows one to write an XML specification, usually in W3C XML Schema (sometimes in DTD as well). One then passes the schema through a data binding tool and out comes code capable of reading/writing XML based on the schema. In the case Java XML data binding libraries, in goes the schema, out comes Java classes that read/write the schema's XML.
XML data binding libraries almost make it "fun" to use XML.
My two part question:
- Does an XML data binding library exist for LiveCode (i.e., in goes the schema, out comes the LiveCode)?
- If not, is it possible to call out to Java classes/libraries from with LiveCode (i.e., could I generate the XML reading Java classes and then use them within LiveCode)?
Regards,
- Gary Nunes