⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 intro.xtp

📁 resinweb服务器源文件
💻 XTP
字号:
<s1 title="XML Introduction"><p>XML, the eXtensible Markup Language, is just another file format.In a way, there's nothing special about it except that it'sstandard and it resembles HTML.  In an alternate universe, thestandard file format could be LISP-based and that universe would havethe same advantages as using XML.</p><p>Because XML is a standard, it provides several advantages over aproprietary format</p><ul><li>Avoid programer meetings to decide on a file format.<li>Simplify documentation by using a well-known syntax.<li>Use available parsers instead of writing new ones (SAX and JAXP).<li>Use standard datastructures instead of inventing new ones (the DOM).<li>Leverage tools built on the standards (XPath and XSL).</ul><p>Of course, XML does not solve everything.  You still need tocreate your own tags and attributes for your application.</p><s2 title="Parsing"><p>There are two standard XML parsing methods: parsing to a the standardDOM (XML Document Object Model) and parsing to user callbacks (SAX).In general, parsing to the DOM is often easier to use but parsing withSAX is more efficient and uses less memory.  The choice really dependson the application.</p><p>Sun's JAXP (Java XML Parsing) API provides animplementation-independent way of parsing XML.</p></s2><s2 title="Data Structures"><p>The W3C Document Object Model (DOM) is the standard datastructure forrepresenting an XML file in memory.  The structure is based on nodes,where elements (tags), attributes, comments, and text are allrepresented as different kinds of nodes.</p></s2><s2 title="Printing"><p>Resin provides a convenient API for print XML.  In addition toprinting standard XML, it can handle pretty-printing and printingHTML files.  For example, several HTML tags, like &lt;img> print asnon-standard XML.</p></s2></s1>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -