i*t
2 楼
what is the function of xml parser? just to validate wheather an xml file is
valid or not? what do we need to parse an xml file? do we need: xml file and
its DLD/schema? thanks.
valid or not? what do we need to parse an xml file? do we need: xml file and
its DLD/schema? thanks.
e*c
3 楼
Parser: SAX Parser->Event Drive
So you define the process when those element, space, attribute, etc happens.
DOM Parser->Node, easy for reading and writing.
So if you want to get the element from XML, if just once, SAX is fine. If you
want to modify it, maybe DOM is better, but it require more memory.
Check www.apache.org for detail.
DTD/schema defines the data type you defined in XML file. It confines the formate
t of XML file.
For parsers, xalan->parser+transformation
Xerecs->parser+schema+...
【在 i*****t 的大作中提到】
: what is the function of xml parser? just to validate wheather an xml file is
: valid or not? what do we need to parse an xml file? do we need: xml file and
: its DLD/schema? thanks.
So you define the process when those element, space, attribute, etc happens.
DOM Parser->Node, easy for reading and writing.
So if you want to get the element from XML, if just once, SAX is fine. If you
want to modify it, maybe DOM is better, but it require more memory.
Check www.apache.org for detail.
DTD/schema defines the data type you defined in XML file. It confines the formate
t of XML file.
For parsers, xalan->parser+transformation
Xerecs->parser+schema+...
【在 i*****t 的大作中提到】
: what is the function of xml parser? just to validate wheather an xml file is
: valid or not? what do we need to parse an xml file? do we need: xml file and
: its DLD/schema? thanks.
g*y
4 楼
you
i am afraid in this case DOM is the only choice bah
formate
is
file and
【在 e***c 的大作中提到】
: Parser: SAX Parser->Event Drive
: So you define the process when those element, space, attribute, etc happens.
: DOM Parser->Node, easy for reading and writing.
: So if you want to get the element from XML, if just once, SAX is fine. If you
: want to modify it, maybe DOM is better, but it require more memory.
: Check www.apache.org for detail.
: DTD/schema defines the data type you defined in XML file. It confines the formate
: t of XML file.
: For parsers, xalan->parser+transformation
: Xerecs->parser+schema+...
相关阅读
[转载] question on XML parser[转载] 如何把ASP的变量传到javascript/HTML的参数请问哪里比较多的XML文档集,比如莎士比亚的leoboard???有谁知道怎么向POCKETPC20002 EMULATOR 加文件吗?急啊learning xmlScanner in XPCan you suggest an XML browser, and server?请教:有谁可以推荐几本关于介绍 web system 的书?Help with tips for xml file transfer using socketXML Spy Suite 4.3 Downloada weird xml parser (MS DOM) problem[转载] 再问一个巨简单的问题(SQL+XML)\\\\\\\\A question about CGI//////请教一个有关installsheild的问题!one simple questionoffice 编程(excel)的菜鸟问题Native XML Database: Free Tamino CDsWhat is difference between XSD and XSL?Any APIs for handling XML?