SQL SERVER中“SELECT 字段 FROM 表名 FOR XML AUTO” 生成如下格式字符串:
<R attr1="xxx" attr2="xxx" />
dom4j等需要获取root元素,而该字符串中没有root元素,有没有其他简单的方案?
闭关修行中......
Xerces Java ParserJAXB
dom4j is an excellent encapsulation of DOM. for ease of use. You can try to start from the original dom. Solve problems. Other analysis: dom jdom sax
Xerces Java Parser
JAXB
dom4j is an excellent encapsulation of DOM. for ease of use. You can try to start from the original dom. Solve problems.
Other analysis:
dom
jdom
sax