Interview Tips Interview Tips, Interview Questions and Answers

21Dec/090

Interview Questions for Developers using XML

    1. Describe the difference between pull-style parsers (XmlReader) and eventing-readers (Sax)
    2. What is the difference between XPathDocument and XmlDocument? Describe situations where one should be used over the other.
    3. What is the difference between an XML "Fragment" and an XML "Document."
    4. What is the purpose of XML Namespaces?
    5. When is the DOM appropriate for use? When is it not? Are there size limitations?
    6. What is the WS-I Basic Profile and why is it important?
    7. What does it meant to say “the canonical” form of XML?
    8. Does System.Xml support DTDs? How?
    9. Can any XML Schema be represented as an object graph? Vice versa?
    10. Write a small XML document that uses a default namespace and a qualified (prefixed) namespace. Include elements from both namespace.
    11. What is the one fundamental difference between Elements and Attributes?
    12. What is the difference between Well-Formed XML and Valid XML?
    13. How would you validate XML using .NET?
    14. Why is this almost always a bad idea? When is it a good idea? myXmlDocument.SelectNodes("//mynode");
    15. Why is the XML InfoSet specification different from the Xml DOM? What does the InfoSet attempt to solve?
    16. Contrast DTDs versus XSDs. What are their similarities and differences? Which is preferred and why?