SóProvas


ID
606172
Banca
CESGRANRIO
Órgão
FINEP
Ano
2011
Provas
Disciplina
Programação
Assuntos

Um DTD (Document Type Definition) é um conjunto de regras usado para definir uma linguagem de marcação XML particular. Caso um documento XML não seja aderente às regras definidas em um DTD, ele não será um documento válido em relação a essa linguagem. Que outra tecnologia XML pode ser usada para definir a estrutura de um documento XML?

Alternativas
Comentários
  • a) XQuery - Errada Xquery é utilizada para pesquisar em um documento xml similar ao SQL
    b) XML Schema - Correta É baseada no XML e é considerada uma alternativa ao DTD sendo apresentada pela W3C em meados de 99.
    c) XML Document Object Model Errada ou XML-DOM define uma forma padronizada de acessar e manipular o documento XML
    d) XPath Errada é utilizada para navegar através dos elementos e atribuos em um documento XML. 
    e) 
    XSLT Errada Ou linguagem de estilo extensível, é uma espécie de CSS para o XML.


  • Complementando sobre o XML Schema:
    Características:
    • É um arquivo XML;
    • Cria tipos de dados;
    • Suporta NameSpaces;
  • Fonte W3Schools http://www.w3schools.com

    The purpose of a DTD (Document Type Definition) is to define the legal building blocks of an XML document. A DTD defines the document structure with a list of legal elements and attributes.

    XML Schema is an XML-based alternative to DTD. An XML schema describes the structure of an XML document. The XML Schema language is also referred to as XML Schema Definition (XSD)XML Schemas are extensible to future additions, are richer and more powerful than DTDs, are written in XML, support data types and support namespaces. 

    The XML DOM defines a standard way for accessing and manipulating XML documents. The XML DOM views an XML document as a tree-structure.All elements can be accessed through the DOM tree. Their content (text and attributes) can be modified or deleted, and new elements can be created. The elements, their text, and their attributes are all known as nodes.

    XPath is a major element in W3C's XSLT standard - and XQuery and XPointer are both built on XPath expressions. XPath uses path expressions to select nodes or node-sets in an XML document. 

    XQuery  is a language for finding and extracting elements and attributes from XML documents, works like SQL, built on XPath expressions and uses FLWOR ( "For, Let, Where, Order by, Return") command structure.

    XSLT stands for XSL Transformations. XSL stands for EXtensible Stylesheet Language, and is a style sheet language for XML documents.