如何使用xslt将xhtml转换为xml [英] how to convert xhtml to xml using xslt

查看:74
本文介绍了如何使用xslt将xhtml转换为xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究一个项目,以从网页中提取所有图像,pdf,word文档并将其存储在数据库中.
因此,我需要使用 Jtidy 将网页转换为xhtml,然后使用 XSLT 将XHTML转换为XML,然后使用XML提取所有这些文件.
我不知道如何使用XSLT将XHTML转换为XML并从中提取数据.

im working on a project to extract all images, pdf, word documents from a web page and store it in a database.
so i need to convert web page to xhtml using Jtidy, and then convert that XHTML to XML using XSLT, then extract all those files using the XML.
i dont know how to convert XHTML to XML using XSLT and extract data from it.
somebody help me on it.

推荐答案

否.您的想法听起来很有趣,但却做了您不想要甚至可能不需要的事情.

阅读此内容: http://java.sun.com/developer/technicalArticles/ThirdParty/WebCrawler/ [ ^ ]

并使用另一种方法.
NO. Your idea sounds interesting but does things you do not want and probably even don''t need.

Read this: http://java.sun.com/developer/technicalArticles/ThirdParty/WebCrawler/[^]

and use another approach.


这篇关于如何使用xslt将xhtml转换为xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆