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+...
相关阅读
ASP.NET 高手请进!XML and web services[转载] Java/JSP/Servlets... and Database(Oracle/DB2)Re: Please help! How to Program to Create an XML document with no root element?请问哪里比较多的XML文档集,比如莎士比亚的Bob Suter gave a talk about XML here.IBM XML Certification哪位知道有没有linux下的XML parserMS XML node insert question请问xsl中template的执行顺序voiceXML求救:英文WIN2K下输入法切换巨慢无比XML parserXML Spy Suite 4.3 Download[转载] ASP+SQL SERVER怎样处理这种有很多分叉的情况question on CGI and XMLScanner in XPquestions!Please help me with XML, XSL, CSS, and XSD!Any APIs for handling XML?