DOM namespace prefix troubles

From: Date: Wed, 02 Nov 2005 17:28:44 +0000
Subject: DOM namespace prefix troubles
Groups: php.general 
Request: Send a blank email to php-general+get-224981@lists.php.net to get a copy of this message
Howdy folks, I'm using PHP 5.0.5 with the DOM enabled and I'm trying to create an XML doc with PHP. The problem I'm having is attaching a namespace prefix to a tag. What I'm trying to create is something like the following: <?xml version="1.0" encoding="UTF-8" ?> <Notes xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd: CommonAggregateComponents-1.0"> <cac:Note /> </Notes> I am unable to create the "<cac:Note />" element with the "cac:" namespace prefix. Any suggestions would be appreciated!

« previous php.general (#224981) next »