Hello, I am trying to create a sitemap. I need to create a specific tag with SimpleXMLElement. It needs to look like this: < mobile:mobile /> So what I have tried is this: $url->addChild('mobile:mobile'); But when it prints it out in the xml document, it looks like this: <mobile></mobile> Is that the same thing? If so, then I don't need any help, but if it's not, then please tell me how I can make that like the one at the top. Thanks in advance
Are you trying to create a SOAP request via simplexml? It's probably possible to hack something in there, but simplexml can't parse or create elements with a colon in them, with the exception of proper namespaces.