Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*/ Création du noeud channel
- $element_channel = $file->createElement("channel");//On crée un élément channel
- $element_channel->setAttribute("id", "news"); //On donne un attribut id à notre channel
- $element_channel = $root->appendChild($element_channel);//On ajoute cet élément à la racine
- */
- // Création du noeud channel
- $element_channel = $file->createElement("channel");//On crée un élément channel
- $element_channel = $root->appendChild($element_channel);//On ajoute cet élément à la racine
- $element_id = $file->createAttribute("xml:id");
- $element_id = $element_channel->appendChild($element_id);
- $element_idt = $file->createTextNode("news"); //On donne un attribut id à notre channel
- $element_idt = $element_id->appendChild($element_idt);
- $element_idt = $element_channel->setIdAttribute("xml:id", true);
Add Comment
Please, Sign In to add comment