Support

Forums

Contact Me

Posts Tagged 'schema'

Schema Validation for Joomla 2.5 Extensions

joomlalovexsd

I’ve created from scratch, all Joomla extensions XSD.

Without them, Joomla accept any entry in manifest xml and never complains about

  • Mistyping, like a valid xml but that the Joomla installer do not understand or only partially,
  • Wrong constructs, xml tag child misplaced,
  • Invalid data type, like a path not being a valid path, an expected integer being a text and so on…

Joomla just silently die during install or install only partially extensions. These days are over as developers with any decent IDE will be able to validate while typing and enjoy auto completion. To use them now just include them in all your manifest like this:

Read more: Schema Validation for Joomla 2.5 Extensions

Code generation from XSD with JAXB and Maven

apache_maven

What you will learn in this small post

  • How to create JAXB proxies at build time using maven-jaxb2-plugin in a continuous build environment (TeamCity / Bamboo)
  • How to generate from an XSD file (XML-Schema-Definitions) Java code.

Requirements

  • We will use JAXB2 (see JSR 222 and JAXB 2.x).
  • We use Maven 2.2.1, the latest available version

Read more: Code generation from XSD with JAXB and Maven

Donations

Thank You for supporting my work