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 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 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+...
相关阅读
ModelServer Integrator宣布支持XML and aecXML.Can I use Chinese Data?how to view .mic files?3x.What is the best free XML software for Chinese ?哪种xml的编辑器比较好用?[转载] XML将成为网上主流语言The Coolest site for XMLe-content推出第一个可升级XML动态网络服务器。W3C推出XSLT与Xpath建议。html里怎样做出上标?Mathematical Markup Language (MathML)helpXML Global 建立了一个开发XSLT网络通信标准的联合论Can I use Big5?example needed软开发出互联网数据交换协议:SOAP1.0how to deal with crash for CGI/PERL新出来的XHTML如何做留言簿?周末先开个头儿