开发者

How to dynamically change the content of HTML in eclipse

I am getting the path of HTML file from IFile- The method is like -

public IStatus runCustomizer(final IFile file, final IDOMPositio开发者_开发百科n position)
    {}

Through this IFile, I am getting an HTML file. Now I want to modify the html file.


I'm not sure the question is restricted with Eclipse. You can read file into any DOM presentation e.g. JDom, Saxon, Xerces etc. and perform XSLT transformation on it. This way is most common but heavy. You can perform customization on DOM presentation manually. These ways are acceptable only if your html file is well-formed. If no you can work with it like with text file but this is more error prone approach.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜