7.6. The appinfo Element
Only an annotation element can contain appinfo elements. The appinfo elements support automated processing of annotations—a discussion beyond the scope of this book. The following example demonstrates that the schema might support a mechanism for automatically creating source code that mirrors the XML schema document. One could, for example, create a program that extracts objects from the XML schema document in which each object mirrors a schema component. Listing 7.3 contains an annotation element, which encloses several appinfo elements. The following is a suitable excerpt:
<xsd:appinfo source= "http://www.XMLSchemaReference.com/examples/java/extractJava"> // A PMB is a "Private Mail Box" that is provided // by an ...
Get XML Schema Complete Reference, The now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.