站内搜索: 请输入搜索关键词
当前页面: 图书首页 > JavaServer Pages, Second Edition

JavaServer Pages, Second Edition

[ directory ] Previous Section Next Section

8.7 Summary and Conclusions

XML wraps data in an extensible set of tags so that documents can carry not only the raw data but also information about what the data means and how it interrelates. By providing a standard mechanism to store and transmit data, XML greatly simplifies the process of communication between different systems or different parts of the same system.

Creating XML files with JSPs is no more difficult than creating HTML; all the same principles apply. Once a JSP has constructed an XML representation, this data can be searched, tested, or iterated, using the XPath language and XML equivalents of many of the tags in the c portion of the standard tag library. In addition, XML data can be transformed from one form into many others, including HTML, through XSLT.

    [ directory ] Previous Section Next Section