what this mean? "PHP script produces XML output conforming to the DTD created"
Printable View
what this mean? "PHP script produces XML output conforming to the DTD created"
Hi,
it means that PHP scripting when written produces XML pre-formatted output conforming to the Document Type Definition listed and defined by the W3C, that then can be formatted and queried by an XLST or XLS query
the DTD is part of a tag that makes up the definition of the way that the page is:
1. transposed
2. recognised by browsers
3. queried by parsers and the server
4. the corect output is produced.
hope this helps
Kai :wave:
is it relate XML DOM? the address below is the infrmation i found that might relate to the Qs, but i'm not sure whether correct or not, can u give me some idea?
http://www.tonymarston.net/php-mysql/dom.html
Hi
no its not related to teh XML DOM. The article you are reading is when you are writing database information to an XML document, then outputting in in the required PHP output conforming to the DTD definition.
your origioanl statement
"PHP script produces XML output conforming to the DTD created"
means that you can produce XML pre/post formatted output, not that it will, you have to definde and write it to do it, and the article in question details how to do this in a database point of view.
hope this helps
Kai :wave:
ok...now my view on this Qs is like this
my View:
use the php code to what so ever and produce the output in the XM file and use DTD to make sure the structure is correct!
am i right?
Hi.
Nearly there!!!
It is you that defines the structure of the XML file and output. PHP can and will format this given the right code, and the Document Type Definition recognises the file type and produces the output in the correct format according to the browser.
so youre on teh right track, but youve not got a clear enough understanding of how the DTD works, but your almost right.
Hope this helps
Kai :wave:
that mean i can create DTD first before do the XML output right?
hi,
Yep, this is generally the way I would do it as this keeps the fow of control in order, and will be easier in defining your XML output and how its deployed on the page. so go for it, youre onteh perfectly right track...
Interested to see how this proceeds. Keep me posted on this one.
hope this helps and enjoy
Kai
ok.....i will post my output........thank..
great!!!!
Am looking forward to this one as dont program in PHP, am an ASP man but aftera period of delibveration, I am going to install Apache on a bench machine to tst it out, so interested in yor reults kenny.
many thanks my man...
Kai :wave:
Hi, Kaihirst........i have completed the task, the attachment is my task document like php, XML, XSLT, DTD, and CSS........
in the php file, after i get the data from database, i start create all the tag of XML and data, and save in XML format. Before this, i created a XSLT to render the XML file data.............!!
Hope u will benefit from my work....thank!!