Proper way to set up this XML in PHP

carlym886

New Member
UPDATED DUE TO ERROR IN CODE AND DESCRIPTIONI am pretty new to XML but am holding my own when creating an XML file using the built in functions. I can create the file like so...\[code\]$xml['doc'] = new DOMDocument('1.0', 'utf-8');\[/code\]and so forth and it outputs like so...\[code\]<?xml version="1.0" encoding="utf-8"?><adf>elements...</adf>\[/code\]what I need is...\[code\]<?xml version="1.0" encoding="utf-8"?><?adf version="1.0"?><adf>elements...</adf>\[/code\]Looking for the correct way to add <adf version="1.0"?>? It does not need a closing tag.I am following a specific format required. Specifically ADF 1.0 as documented here....http://en.wikipedia.org/wiki/Auto-lead_Data_Format
 
Back
Top