Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Poco SAX パーサー ヘッダー ファイルを数回調べましたが、要素の内部テキストを取得する方法に関する情報が見つからないようです。例えば:
<description>This is the inner text.</description>
誰かが私を正しい方向に向けることができますか?
わかりました、自分で解決策を見つけました。次のように「文字」メソッドを実装する必要がありました。
void MyParser::characters(const Poco::XML::XMLChar ch[], int start, int length) { std::string innerText = std::string(ch + start, length); }