请教JDOM问题:构造Element对象不能用“:”号...
<rdf:RDF xmlns:xp="http://au.com.Langdale/2000/Xpetal" xmlns:cims="http://iec.ch/TC57/1999/rdf-schema-extensions-19990926#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
我想生成的RDF文档开头有如上格式。
遇到的难题是:
rdf:RDF怎么产生??
我用了Namespace 和 Element类。
但是构造Element对象时,不能有“:”。
比如:Element ment = new Element(rdf:RDF);
是会出错的。
我该怎么解决?