如何将ptree的特定节点(和节点的所有子节点)写入xml文件

时间:2019-05-14 08:10:52

标签: c++ xml boost ptree

当前,我正在使用Boost库使用保存的图像文件生成xml文件。所有数据都存储在一棵树中的节点中。 而且我想知道如何选择带有value(2)及其子元素(a,b,c,d)的“对象”和“大小”节点,最终生成一个xml文件。

正在尝试.erase擦除具有相同名称的上一个节点 一直在尝试.put,但是它给出了最后一个值。

Build command failed.
  Error while executing process /Users/abc/Library/Android/sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/abc/Documents/PhotoStudio/app/src/main/jni/Android.mk NDK_APPLICATION_MK=/Users/abc/Documents/PhotoStudio/app/src/main/jni/Application.mk APP_ABI=arm64-v8a NDK_ALL_ABIS=arm64-v8a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=/Users/abc/Documents/PhotoStudio/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/Users/abc/Documents/PhotoStudio/app/build/intermediates/ndkBuild/debug/lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
  Android NDK: ERROR:/Users/abc/Documents/PhotoStudio/app/src/main/jni/Android.mk:opencv_contrib: LOCAL_SRC_FILES points to a missing file    
  Android NDK: Check that /Users/abc/Documents/PhotoStudio/app/src/main/jni/../jniLibs/arm64-v8a/libopencv_contrib.a exists  or that its path is correct   

/Users/abc/Library/Android/sdk/ndk-bundle/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting    .  Stop.

0 个答案:

没有答案
相关问题