tree->SimulationModel as $sm) { $ResourceID = trim($sm->ResourceID); if (strpos($ResourceID, 'Static') === false) { $simulationModel = $this->domAmda->createElement('simulationModel'); $simulationModel->setAttribute('xml:id', $sm->ResourceID); $simulationModel->setAttribute('name', $sm->ResourceHeader->ResourceName); $simulationModel->setAttribute('desc', $sm->ResourceHeader->Description.'
ReleaseDate: '.$sm->ResourceHeader->ReleaseDate); $this->setModelHelp($simulationModel,""); if ($this->tree->SimulationRun->count() > 0) { $simulationRegionNodes = $this->createSimulationRegionNodes(trim($simulationModel->getAttribute('xml:id'))); foreach ( $simulationRegionNodes as $node ) $simulationModel->appendChild($node); } $missionNodes[] = $simulationModel; } } return $missionNodes; } } ?>