Click here to Skip to main content
15,860,859 members
Articles / Programming Languages / Visual C++ 10.0

Linq-To-XML Style of Node Creation for C++

Rate me:
Please Sign up or sign in to vote.
4.78/5 (14 votes)
12 Apr 2016Ms-PL11 min read 43.3K   500   29  
Linq-To-XML Node Creation for Native C++
Version 0.84 Beta
+ Checked in PJ Arends' RootElement and Elmax.h header and a unit test (in UnitTestSaveAndRead.cpp) to test RootElement.

Version 0.83 Beta
+ Checked in PJ Arends fix for missing closing tag (if there is no child elements) for PrettySave and Save methods.

Version 0.82 Beta
+ Fixed the PrettySave problem of cannot save Comment and CData Section correctly.
+ Fixed Save and PrettySave method not to use MSXML DOM to save to cut down memory consumption and improve performance.

Version 0.81 Beta
+ Minor change for release together with the new article.

Version 0.80 Beta
+ Added pretty save
+ Added Linq-to-XML style node creation for C++ Elmax.

Version 0.77 Beta
+ Removed Hungarian notation from C# Elmax library and tests
+ Filled in missing C# documentation comments

Version 0.75 Beta
+ Added setter and getter methods for ATL CString 
+ Added methods to query using XPath
+ Added methods to read and write hexadecimal values

Version 0.70 Beta
+ C# library and unit tests

Version 0.65 Beta : 10/01/2011
+ Using ATL Base64 implementation
+ Changed the getter and setter not to throw exceptions because of null type converter pointer
+ Option to read and write GUIDs without braces.
+ Renamed "convertor" to "converter"

Version 0.6 Beta : 24/12/2010
+ Added capability to save GUID, date and datetime in XML
+ Added capability to save binary file content in Base64 format in XML

Version 0.5 Beta : 23/12/2010
+ 1st release (Feature complete)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


Written By
Software Developer (Senior)
Singapore Singapore
Shao Voon is from Singapore. His interest lies primarily in computer graphics, software optimization, concurrency, security, and Agile methodologies.

In recent years, he shifted focus to software safety research. His hobby is writing a free C++ DirectX photo slideshow application which can be viewed here.

Comments and Discussions