1.. _xmlstruct:
2
3XML molecular structure format
4==============================
5
6The XML structure format was designed as a light-weight alternative to remediate some of the shortcomings of the flat-file format.
7By use of XML, issues related to extra fields in the file or columns merging together can easily be remedied.
8Additionally, APBS will only parse the necessary information from the XML file and will ignore all other information, so users wishing to store extra data related to a residue or atom can do so inline without affecting APBS.
9
10This data format has the following form:
11
12.. code-block:: xml
13
14   <roottag>
15      <residue>
16          <atom>
17              <x>x</x>
18              <y>y</y>
19              <z>z</z>
20              <charge>charge</charge>
21              <radius>radius</radius>
22          </atom>
23          ...
24      </residue>
25      ...
26   </roottag>
27
28The variables in this example are:
29
30``roottag``
31  This is the root element of the XML file. The value is not important to APBS - APBS simply checks that it is closed at the end of the file.
32
33``x y z``
34  A float giving the {x, y, z}-coordinate of the atom in Å.
35
36``charge``
37  A float giving the atomic charge (in electrons).
38
39``atomradius``
40  A float giving the atomic Radius (in Å).
41
42.. note::
43
44   Yes, we probably should have used `PDBML <http://pdbml.pdb.org/>`_ instead.
45