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.
在我的 c++ 代码和使用 xerces 进行 sax 解析中,我想通过它的名称来获取属性的值。我怎样才能做到这一点 ?xerces 文档中有类似的内容,但不起作用:
String identifier = atts.getValue("id");
提前致谢
我已经解决了这个问题
XMLCh* identity= XMLString::transcode("id"); char* identityVal = XMLString::transcode(attrs.getValue(identity));