On 11/18/2013 10:45 AM, Lars Lars wrote:
Thank you for the feedback.
We would like to avoid adding a dependency to a third party lib for such a small task. Does CMake have any plans to include ability to modifications xml files?
You could make this a feature request of course and this is no way up to me either way but I don't think it likely (at least not in the near future). As far as I can tell there is currently no support for XSLT or XPath within CMake itself or any of its currently used libraries. expat (which I think is the parser library currently available within CMake) I assume has no support for this either.

Depending on the complexity of your modification configure_file() might suffice to generate XML files based on an XML template with simple variable substitutions? Might also be feasible to limit this to a small portion of the XML file assuming that what ever consumes the files supports one of the XML include mechanisms.

Nils
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to