How does the browser handle and display each XML element?

zhaozj2021-02-16  102

1. Style Sheet Linking. With this technology, you can link a style sheet to the XML document. Style sheet is a separate file that contains instructions that format each XML element. You can use a Cascading Style Sheet (CSS) (available for HTML page), or the style sheet written in Extensible Stylesheet Language (XSL) (much more powerful than CSS, and is specifically XML document design). 2. Data Binding. This option requires you to create an HTML page, link the XML document to it, and bind the standard HTML elements in this page, such as the span or table element, to the XML element. Next, the HTML element automatically displays information from the XML elements they bind. 3. Scripting. With this technology, you can create an HTML page to link an XML document to it and access and display each XML element by writing script code (JavaScript or Microsoft Visual Basic Scripting Edition (VBScript)). The browser exposes the XML document to the document object model (DOM), which provides many objects, properties, and method sets so that scripting code uses them to access, manage and display XML elements.

转载请注明原文地址:https://www.9cbs.com/read-11236.html

New Post(0)