$test123="тест";
class NP{
public static function warenhouse(){
$xml='<?xml version="1.0" encoding="utf-8"?>
<file>
<warenhouse/>
<filter>вот сюда надо передать $test123</filter>
</file>';
$xml = simplexml_load_string(NP::send($xml));
return($xml);
}}