www.webdeveloper.com
Results 1 to 6 of 6

Thread: PHP mixing two document types in one XML document

  1. #1
    Join Date
    Apr 2006
    Posts
    244

    Question PHP mixing two document types in one XML document

    Hi all,

    During my mock Zend PHP certification exams I have came across the following question that I have researched online but have not found a definitive, and understandable, answer to them. Can anyone advise what the answers to these may be or point me in the right direction?

    What XML technology is used when you mix two different document types in a single XML document?

    1. Validators
    2. DTD
    3. Transformers
    4. Namespaces


    Best Regards,
    Picco

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    18,921
    I believe that would be XML Namespaces.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Apr 2006
    Posts
    244
    Is using XML namespaces mixing two different document TYPES though? MY understanding of XML namespaces is as per this example:

    Code:
    		<root
    		xmlns:h="http://www.w3.org/TR/html4/"
    		xmlns:f="http://www.w3schools.com/furniture">
    
        <h:table>
          <h:tr>
            <h:td>Apples</h:td>
            <h:td>Bananas</h:td>
          </h:tr>
        </h:table>
    
        <f:table>
          <f:name>African Coffee Table</f:name>
          <f:width>80</f:width>
          <f:length>120</f:length>
        </f:table>

  4. #4
    Join Date
    Jan 2007
    Location
    Wisconsin
    Posts
    2,120
    I'm 97&#37; sure the DTD applies to the entire document (file). The only way this question really makes sense to me is if I'm mistaken about that ...

    ADDENDUM: ... given the terminology they're using here. Otherwise, nogdog's answer is the best possible answer.
    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

  5. #5
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    18,921
    Yeah, I should have said that I'm not 100% sure, it just seemed like the other answers were worse, and having multiple name-spaces within one XML document seemed at least sort of like having multiple DTDs.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  6. #6
    Join Date
    Apr 2006
    Posts
    244

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles