我遇到了xml文件的一部分問題。我用sax和java解析它。
我不能設法得到文本的所有部分(文本的開始,文本的中間,文本的結尾)。sax:解析混合內容文本的麻煩
<sometag type="aType">
beginning of the text
<anothertag type="anotherType" target="aTarget">middle of the text</anothertag>
end of the text
</sometag>
歡迎來到SO。爲了幫助你,你將不得不提供無法使用的代碼,否則我們只能猜測。請看看http://stackoverflow.com/questions/how-to-ask –