由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
XML版 - newbie question.. what's process instruction?
相关主题
How to parse DTD structure?16-20
one simple questionA common language and its risks
XML 教程--3XML 教程--8
Database and XMLXML 教程--10
a question about displaying image by using xml and xslwhat is the difference between XML and XSL
初级xml问题,谢谢~!!!DTD vs CSS
XML resourceentity
10-15在Excel中如何使用XML?
相关话题的讨论汇总
话题: pi话题: pitarget话题: getdoctype话题: processing
进入XML版参与讨论
1 (共1页)
b****e
发帖数: 1275
1
rt..
s******n
发帖数: 22
2
from http://www.w3.org/TR/1998/REC-xml-19980210#sec-pi
2.6 Processing Instructions
Processing instructions (PIs) allow documents to contain
instructions for applications.
Processing Instructions
[16] PI ::= '' Char*)))? '?>'
[17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))
PIs are not part of the document's character data, but must
be passed through to the application. The PI begins with a
target (PITarget) used to identify the application to whic

【在 b****e 的大作中提到】
: rt..
b****e
发帖数: 1275
3
so what's the difference between a docType and a PI?
are they both
thanks

【在 s******n 的大作中提到】
: from http://www.w3.org/TR/1998/REC-xml-19980210#sec-pi
: 2.6 Processing Instructions
: Processing instructions (PIs) allow documents to contain
: instructions for applications.
: Processing Instructions
: [16] PI ::= '' Char*)))? '?>'
: [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))
: PIs are not part of the document's character data, but must
: be passed through to the application. The PI begins with a
: target (PITarget) used to identify the application to whic

s*k
发帖数: 144
4
我的愚见: DTD类似于数据类型,表明的是数据本身的类型定义,
PI则是为处理xml/sgml的软件给出的提示。

【在 b****e 的大作中提到】
: so what's the difference between a docType and a PI?
: are they both
: thanks

b****e
发帖数: 1275
5
i asked the difference btw a docTYPE and a PI.. not DTD.
so if i call getDocType and getProcessInstruction on
a standard xml document.. with the header i gave below..
what do they return?

【在 s*k 的大作中提到】
: 我的愚见: DTD类似于数据类型,表明的是数据本身的类型定义,
: PI则是为处理xml/sgml的软件给出的提示。

s*k
发帖数: 144
6
I guess you will get all the content in your <> by getDocType
and nothing from getProcessInstruction.
from specification, PItarget can not have any name with
(('X' | 'x') ('M' | 'm') ('L' | 'l')).

【在 b****e 的大作中提到】
: i asked the difference btw a docTYPE and a PI.. not DTD.
: so if i call getDocType and getProcessInstruction on
: a standard xml document.. with the header i gave below..
: what do they return?

s******n
发帖数: 22
7
somewhat confused....
don't know about getDocType() and getProcessingInstruction()
also can't find them in DOM API.
PI is a type of node, just like Element, Attributer,
Text......
Document is container, owning a bundle of nodes,
so there should be some sort of different between them.

【在 b****e 的大作中提到】
: i asked the difference btw a docTYPE and a PI.. not DTD.
: so if i call getDocType and getProcessInstruction on
: a standard xml document.. with the header i gave below..
: what do they return?

b****e
发帖数: 1275
8
getDocType gives you
getPI() gives you i think :) never used getPI anywhere tho..

【在 s******n 的大作中提到】
: somewhat confused....
: don't know about getDocType() and getProcessingInstruction()
: also can't find them in DOM API.
: PI is a type of node, just like Element, Attributer,
: Text......
: Document is container, owning a bundle of nodes,
: so there should be some sort of different between them.

1 (共1页)
进入XML版参与讨论
相关主题
在Excel中如何使用XML?a question about displaying image by using xml and xsl
A very simple question from XML beginner, Thank you初级xml问题,谢谢~!!!
XML, Database and JavaXML resource
请各位看看,他们是不是很难呢?10-15
How to parse DTD structure?16-20
one simple questionA common language and its risks
XML 教程--3XML 教程--8
Database and XMLXML 教程--10
相关话题的讨论汇总
话题: pi话题: pitarget话题: getdoctype话题: processing