转载 2006年06月05日 17:11:00

Chapter 2. Markup and Core Concepts

There's a Far Side cartoon by Gary Larson about an unusual chicken ranch. Instead of strutting around, pecking at seed, the chickens are all lying on the ground or draped over fences as if they were made of rubber. You see, it was a boneless chicken ranch.

Just as skeletons give us vertebrates shape and structure, markup does the same for text. Take out the markup and you have a mess of character data without any form. It would be very difficult to write a computer program that did anything useful with that content. Software relies on markup to label and delineate pieces of data, the way suitcases make it easy for you to carry clothes with you on a trip.

This chapter focuses on the details of XML markup. Here I will describe the fundamental building blocks of all XML-derived languages: elements, attributes, entities, processing instructions, and more. And I'll show you how they all fit together to make a well-formed XML document. Mastering these concepts is essential to understanding every other topic in the book, so read this chapter carefully.

All of the markup rules for XML are laid out in the W3C's technical recommendation for XML version 1.0 ( This is the second edition of the original which first appeared in 1998. You may also find Tim Bray's annotated, interactive version useful. Go and check it out at

[ Team LiB ]

XML即可扩展标记语言(Extensible Markup Language)


XML(Extensible Markup Language 可扩展的标记语言)简述及读取

1)可拓展性标志语言 2)XML用于描述数据 3)XML用途广泛(传递数据的桥梁,无论哪种编程语言) eg:  //根节点            1002            张靓   ...
  • Inite
  • Inite
  • 2017年01月07日 16:59
  • 424

The content of elements must consist of well-formed character data or markup

java 中使用dom4j解析含有特殊字符的xml文件出现了如题的错误 这个时候需要在特殊字符外面加上 [html] view plaincopy x...

javascript DOM编程艺术笔记——CH7 creating markup on the fly

动态创建标记 动态创建标记 传统documentwrite innerHTML dom方法createElement createTextNode appendChild insertBefore 重...

Where is the best place to put <script> tags in HTML markup?


maven+spring-boot+springfox+swagger2markup+spring restdoc+asciidoctor生成完美的rest文档

写了一个工程,要写文档,相信所有的程序员都和我一样,最讨厌写文档,有没有片动生成文档的东西呢?有! 首先,我们要引入swagger。 1、swagger 什么是swagger?说白了,就是可以帮你生成...

Markup and scripting languages

keywords: markup language 标记语言 scripting language 脚本语言 html 超文本标记语言 line capacity 线路容量 word pro...

Markup, mark down

关于用python做文本文件的html markup项目。终于凭反复阅读体会实验代码,了解到了其中的一些实质。话说,初学学python真的好么,太多东西都被抽象化了,只能说用起来容易,小改动容易吧。如...

emacs-wiki markup 标记语言

C-h v emacs-wiki-publishing-markup 可以在正确的安装了emacs-wiki之后打开markup的帮助页 emcas-wiki-publishing-markup定义...
  • xbl1986
  • xbl1986
  • 2012年04月24日 13:17
  • 998

JSF简单实例及无法正常访问的解决方法(404和The markup in the document preceding the root element must be well-formed. )

一、HTTP Status 404 - /JSFLoginDemo/userLogin.faces 去除如下红色配置即可正常访问: xml version="1.0" encoding="UT...
  • ly20wy
  • ly20wy
  • 2013年12月05日 11:01
  • 1280