Results 1 to 11 of 11

Thread: PHP script produces XML output??

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Posts
    840

    Resolved PHP script produces XML output??

    what this mean? "PHP script produces XML output conforming to the DTD created"
    Last edited by kenny_oh; Nov 12th, 2005 at 09:54 PM.

  2. #2
    Fanatic Member kaihirst's Avatar
    Join Date
    Jul 2005
    Location
    The Resaurant At the End of The Universe
    Posts
    633

    Re: PHP script produces XML output??

    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
    As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..

    A few things that make a good Developer a Great One.
    Methodical and a thorough approach to research and design inevitably leads to success.
    Forward thinking is the key to Flow of control.
    Never test in the design environment, always test in real time, you get the REAL results.
    CBSE & OOSE are the same animal, they just require different techniques, and thinking.
    SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
    The key to good design is explicit attention to both detail and response.
    Think Freely out of the "Box" you're in..... You will soar to better heights.

    Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT


  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Posts
    840

    Re: PHP script produces XML output??

    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

  4. #4
    Fanatic Member kaihirst's Avatar
    Join Date
    Jul 2005
    Location
    The Resaurant At the End of The Universe
    Posts
    633

    Re: PHP script produces XML output??

    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
    As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..

    A few things that make a good Developer a Great One.
    Methodical and a thorough approach to research and design inevitably leads to success.
    Forward thinking is the key to Flow of control.
    Never test in the design environment, always test in real time, you get the REAL results.
    CBSE & OOSE are the same animal, they just require different techniques, and thinking.
    SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
    The key to good design is explicit attention to both detail and response.
    Think Freely out of the "Box" you're in..... You will soar to better heights.

    Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT


  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Posts
    840

    Re: PHP script produces XML output??

    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?

  6. #6
    Fanatic Member kaihirst's Avatar
    Join Date
    Jul 2005
    Location
    The Resaurant At the End of The Universe
    Posts
    633

    Re: PHP script produces XML output??

    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
    As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..

    A few things that make a good Developer a Great One.
    Methodical and a thorough approach to research and design inevitably leads to success.
    Forward thinking is the key to Flow of control.
    Never test in the design environment, always test in real time, you get the REAL results.
    CBSE & OOSE are the same animal, they just require different techniques, and thinking.
    SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
    The key to good design is explicit attention to both detail and response.
    Think Freely out of the "Box" you're in..... You will soar to better heights.

    Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT


  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Posts
    840

    Re: PHP script produces XML output??

    that mean i can create DTD first before do the XML output right?

  8. #8
    Fanatic Member kaihirst's Avatar
    Join Date
    Jul 2005
    Location
    The Resaurant At the End of The Universe
    Posts
    633

    Re: PHP script produces XML output??

    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
    As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..

    A few things that make a good Developer a Great One.
    Methodical and a thorough approach to research and design inevitably leads to success.
    Forward thinking is the key to Flow of control.
    Never test in the design environment, always test in real time, you get the REAL results.
    CBSE & OOSE are the same animal, they just require different techniques, and thinking.
    SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
    The key to good design is explicit attention to both detail and response.
    Think Freely out of the "Box" you're in..... You will soar to better heights.

    Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT


  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Posts
    840

    Re: PHP script produces XML output??

    ok.....i will post my output........thank..

  10. #10
    Fanatic Member kaihirst's Avatar
    Join Date
    Jul 2005
    Location
    The Resaurant At the End of The Universe
    Posts
    633

    Re: PHP script produces XML output??

    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
    As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..

    A few things that make a good Developer a Great One.
    Methodical and a thorough approach to research and design inevitably leads to success.
    Forward thinking is the key to Flow of control.
    Never test in the design environment, always test in real time, you get the REAL results.
    CBSE & OOSE are the same animal, they just require different techniques, and thinking.
    SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
    The key to good design is explicit attention to both detail and response.
    Think Freely out of the "Box" you're in..... You will soar to better heights.

    Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT


  11. #11

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Posts
    840

    Re: PHP script produces XML output??

    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!!
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width