Added XML to the layer 1 apis. Added global and process to layer 0. Fixe...

...d code snippet.