- function show_service($type, $uri, $params=null, $sigs=null, $localId=null) {
- common_element_start('Service');
- if ($uri) {
- common_element('URI', null, $uri);
- }
- common_element('Type', null, $type);
- if ($params) {
- foreach ($params as $param) {
- common_element('Type', null, $param);
- }
- }
- if ($sigs) {
- foreach ($sigs as $sig) {
- common_element('Type', null, $sig);
- }
- }
- if ($localId) {
- common_element('LocalID', null, $localId);
- }
- common_element_end('Service');
- }
-}
\ No newline at end of file