<item> <title>Başlık</title> <link>https://www.google.com.tr</link> <description>Açıklama</description> <g:id>198</g:id> <g:condition>new</g:condition> </item>SimpleXMLElement ile oluşturduğumda <g:id> degil sadece <id> şeklinde oluşuyor. g:condition için de aynı şey geçerli.
Kullandığım kod da şu şekilde;
$xml = new SimpleXMLElement('<xml/>');
$item = $xml->addChild('item');
$item->addChild("title", "Başlık");
$item->addChild("link", "https://www.google.com.tr");
$item->addChild("description", "Açıklama");
$item->addChild("g:id", 198);
$item->addChild("g:condition", "new");
Header('Content-type: text/xml');
echo $xml->asXML();yukarıdaki şekilde nasıl xml oluşturabilirim. Teşekkür ederim.