当前位置: 首页 > 图文教程 > XML家族 > XML > XML FAQ (en)

XML
多级联动下拉选择框,动态获取下一级
利用XMLSerializer将对象串行化到XML
用XML和XSL来生成动态页面
XML的简单读取与写入
手把手教你制作Google Sitemap
用XsltArgumentList实现xsl的参数调用
将一个图片以二进制值的形式存入Xml文件中
将图片读入到Dom中,并将其存为xml文件
WML初级教程之从实际应用中了解WML
利用XMLBean轻轻松松读写XML
.NET中书写XML的一种简单方法
实例简析XPath串函数和XSLT
在XPath查询中指定轴(转自MSSQL手册)
使用带批注的 XDR 架构创建 XML 视图
使用 XML 模板 (MSSQL手册)
新兴XML处理方法VTD-XML介绍
利用XML实现通用WEB报表打印实际使用中的例子
从XML中读取数据到内存的实例
Xml_javascript分页
创建带有关联的 XML 架构的 XML 文件 && 从 XML 文件创建 XML 架构

XML FAQ (en)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-08-14   浏览: 62 ::
收藏到网摘: n/a

1. what is XML?
o       XML stands for Extensible Markup Language
o       It is a meta-markup language (you make up your own tags)
o       XML is not a programming language, it is a data format
o       XML documents can be parsed.
  
2. What is the difference between XML & HTML?
o       XML describes data, HTML displays data.
o       HTML has predefined tags, in XML we define tags
o       HTML can be displayed on its own, XML cannot.
        The combination of XML and HTML is XHTML.
  
3. What is a "well-formed" document?
   The well formed document must obey the basic XML constraints like :
o       All Documents must have a prolog.
o       Document must have a root tag.
o       All begin-tags must have end-tags. (case sensitive)
o       All attribute values must be quoted.
o       Elements must be properly nested.
o       All entities must be declared.
   If a document is not a well-formed document it is not a XML document.
  
4. What is DTD?
Document Type Definition defines the structure of an XML document. A DTD can
be declared inline in your XML document, or as an external reference.
DTD defines :
o       What element (tag) names are allowed
o       What attributes are used with each element
o       Which child elements belong to which parent elements
o       What order child elements can appear in
o       Also declares entities and notations
  
5. What are the building blocks of XML?
o       Elements
o       Attributes
o       Entities
o       Notations
  
6. What is a valid document
      If a document's structure and tag names match the information model, it
is 'valid'. Validation is optional. A valid document is always well-formed.
  
7. What is XSLT?
XSLT is a language for transforming the structure of XML documents. The XSL
Transformations (XSLT) vocabulary provides a rule-based framework for select
ing and processing document content, and transforming it into new documents
  
8. What is XML Parser?
A set of software components designed for reading, processing and creating X
ML documents.
Parsers expose the structures and tags within a XML document thus making it
easy to process XML documents.
  
9. What are the types of Parsers
DOM Vs SAX
o       SAX is event-based and DOM is object-based
o       SAX is developed by XML-Dev mailing list and DOM is a W3C recommendation
o       DOM constructs a tree in memory and SAX does not
o       SAX is read-only and DOM is read-write.
o       SAX uses less memory and is fast & efficient

 

        We also have Validating and non-validating parsers.
  
10. What is XML family ?
o       Display : XHTML, XSLT, XSL
o       Modeling : DTD, XML Schema
o       Manipulating : DOM, SAX
o       Querying : Xlink, XQL, Xpath