XML Structure

The first line of every XML file in Office and Tablet for AMS/PLL (<?xml version=“1.0” encoding=“utf-8”?>) is exactly the same and should not be altered. For every file associated with Layout Manager, the second line is one of the following:

  • Core XMLs (such as SRGeneral.xml, WOGeneral.xml, etc.):
  • <webLayout xmlns="http://www.azteca.com/cityworks/layout/webLayout"></webLayout">
  • Plugin XMLs (such as GeocodePlugin.xml):
  • <pluginLayout xmlns="http://www.azteca.com/cityworks/layout/pluginLayout"></pluginLayout>
  • Global XMLs (such as Global.xml):
  • <webLayout xmlns="http://www.azteca.com/cityworks/layout/webLayout">
  • Web Forms (such as SearchDisplayFields.xml):
  • <CwWebFormLayout xmlns="http://www.azteca.com/cityworks/CwWebFormLayout">

IMPORTANT: These should not be altered unless they need to be.

The core XML files are divided into three sections: controls, layout, and messages. Each section has a specific purpose and it is very important that you understand the purpose of each section so that errors are not accidentally introduced to the XML code.

NOTE: The Plugin XML files only include the <messages> section.