Redian新闻
>
如何把HTML 转换成XML 文档
avatar
c*e
2
this will be very hard, because the semantic is not defined.
If i got you right, my suggestion is to build a dtd basing on html first the
n u can generate xml for any html file with the help of a html parser.
if you have to write everything by yourself..its a big project.
basically u need:
1. a html parser including a databackend
2. XML generator (there are lots of such tools like UDM. Xerces...which dose
xml generation and validation)

【在 b****t 的大作中提到】
: 紧急求救.
avatar
m*c
3

You can use "tidy" to covert HTML to a valid XML (aka XHTML), and then you can
use XSLT to convert it to other XML structures.

【在 c********e 的大作中提到】
: this will be very hard, because the semantic is not defined.
: If i got you right, my suggestion is to build a dtd basing on html first the
: n u can generate xml for any html file with the help of a html parser.
: if you have to write everything by yourself..its a big project.
: basically u need:
: 1. a html parser including a databackend
: 2. XML generator (there are lots of such tools like UDM. Xerces...which dose
: xml generation and validation)

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。