Energy-related occupant behavior in buildings is difficult to define and quantify, yet critical to our understanding of total building energy consumption. Part I of this two-part paper introduced the DNAS (Drivers, Needs, Actions and Systems) framework, to standardize the description of energy-related occupant behavior in buildings. Part II of this paper implements the DNAS framework into an XML (eXtensible Markup Language) schema, titled {\textquoteleft}occupant behavior XML{\textquoteright} (obXML). The obXML schema is used for the practical implementation of the DNAS framework into building simulation tools. The topology of the DNAS framework implemented in the obXML schema has a main root element OccupantBehavior, linking three main elements representing Buildings, Occupants and Behaviors. Using the schema structure, the actions of turning on an air conditioner and closing blinds provide two examples of how the schema standardizes these actions using XML. The obXML schema has inherent flexibility to represent numerous, diverse and complex types of occupant behaviors in buildings, and it can also be expanded to encompass new types of behaviors. The implementation of the DNAS framework into the obXML schema will facilitate the development of occupant information modeling (OIM) by providing interoperability between occupant behavior models and building energy modeling programs.

Reducing energy consumption in the buildings sector requires significant changes, but technology alone may fail to guarantee efficient energy performance. Human behavior plays a pivotal role in building design, operation, management and retrofit, and is a crucial positive factor for improving the indoor environment, while reducing energy use at low cost. Over the past 40 years, a substantial body of literature has explored the impacts of human behavior on building technologies and operation. Often, need-action-event cognitive theoretical frameworks were used to represent human-machine interactions. In Part I of this paper a review of more than 130 published behavioral studies and frameworks was conducted. A large variety of data-driven behavioral models have been developed based on field monitoring of the human-building-system interaction. Studies have emerged scattered geographically around the world that lack in standardization and consistency, thus leading to difficulties when comparing one with another. To address this problem, an ontology to represent energy-related occupant behavior in buildings is presented. Accordingly, the technical DNAs framework is developed based on four key components: i) the Drivers of behavior, ii) the Needs of the occupants, iii) the Actions carried out by the occupants, and iv) the building systems acted upon by the occupants. This DNAs framework is envisioned to support the international research community to standardize a systematic representation of energy-related occupant behavior in buildings. Part II of this paper further develops the DNAs framework as an XML (eXtensible Markup Language) schema, obXML, for exchange of occupant information modeling and integration with building simulation tools.