コロンを含む XML 属性を PHP で追加しようとしています。
私はそれを次のようにしたい:
<record xsi:schemaLocation="http://abc.com/abcItem file:///somename.xsd">
次のような属性を追加しようとしました:
$record_xml->addAttribute('xsi:schemaLocation','http://abc.com file:///somepath/somename.xsd');
しかし、結果の XML は次のとおりです。
<record schemaLocation="http://abc.com/abcItem file:///somepath/somename.xsd">