我有一个使用struts标签库创建的网页(.jsp)。当我尝试验证w3c.org中的网页时,所有的struts标签都是未定义的。 E.g <html:button>未定义。我使用的DOCTYPE是 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
请让我知道如何解决问题。或者我们不能以符合W3C标准的方式创建基于St
在这个接口的文档中,它指出textnodes全部返回“#text”作为他们的名字而不是实际的标签名称。但对于我在做什么,标签名称是必要的。 // I'm using the following imports
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
这可能吗?例如,如果我运行jSoup代码: Document source = Jsoup.connect("http://www.xmlFile.com/file.xml").get();
// Convert the Jsoup object to a w3c Document object with Apache.
return DOMBuilder.jsoup2DOM(source);