- # XXX: more structured location data
- if ($profile->location) {
- common_element_start('based_near');
- common_element_start('geo:SpatialThing');
- common_element('name', null, $profile->location);
- common_element_end('geo:SpatialThing');
- common_element_end('based_near');
+ // XXX: more structured location data
+ if ($this->profile->location) {
+ $this->elementStart('based_near');
+ $this->elementStart('geo:SpatialThing');
+ $this->element('name', null, $this->profile->location);
+ $this->elementEnd('geo:SpatialThing');
+ $this->elementEnd('based_near');