Click here to Skip to main content
14,211,427 members
Click here to Skip to main content

Stats

34.3K views
477 downloads
29 bookmarked

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

,
Rate this:
4.78 (14 votes)
Please Sign up or sign in to vote.
4.78 (14 votes)
12 Apr 2016     Ms-PL    
Linq-To-XML Node Creation for Native C++
BuildProcessTemplates
Elmax.vsmdi
ElmaxNet
Properties
Elmax
Elmax.vcxproj.user
Elmax_2005.vcproj
Elmax_2008.vcproj
StringUtils
Local.testsettings
TestNativeElmax
app.ico
TestNativeElmax.vcxproj.user
TestNetElmax
Properties
TestNetElmax.csproj.user
TraceAndTestImpact.testsettings
TryoutNet
Properties
Tryout
res
Tryout.ico
Tryout.vcproj
Tryout.vcxproj.user
Tryout_2008.vcproj
Elmax.vsmdi
Elmax.vcxproj.user
Elmax_2005.vcproj
Elmax_2008.vcproj
Local.testsettings
app.ico
TestNativeElmax.vcxproj.user
TestNetElmax.csproj.user
TraceAndTestImpact.testsettings
Tryout.ico
Tryout.vcproj
Tryout.vcxproj.user
Tryout_2008.vcproj
Elmax.vsmdi
Elmax.vcxproj.user
Elmax_2005.vcproj
Elmax_2008.vcproj
Local.testsettings
app.ico
TestNativeElmax.vcxproj.user
TestNetElmax.csproj.user
TraceAndTestImpact.testsettings
Tryout.ico
Tryout.vcproj
Tryout.vcxproj.user
Tryout_2008.vcproj
Elmax.vsmdi
Elmax.vcxproj.user
Elmax_2005.vcproj
Elmax_2008.vcproj
Local.testsettings
app.ico
TestNativeElmax.vcxproj.user
TestNetElmax.csproj.user
TraceAndTestImpact.testsettings
Tryout.ico
Tryout.vcproj
Tryout.vcxproj.user
Tryout_2008.vcproj
Elmax.vsmdi
Elmax.vcxproj.user
Elmax_2005.vcproj
Elmax_2008.vcproj
Local.testsettings
app.ico
TestNativeElmax.vcxproj.user
TestNetElmax.csproj.user
TraceAndTestImpact.testsettings
Tryout.ico
Tryout.vcproj
Tryout.vcxproj.user
Tryout_2008.vcproj
Elmax.vsmdi
Elmax.vcxproj.user
Elmax_2005.vcproj
Elmax_2008.vcproj
Local.testsettings
app.ico
TestNativeElmax.vcxproj.user
TestNetElmax.csproj.user
TraceAndTestImpact.testsettings
Tryout.ico
Tryout.vcproj
Tryout.vcxproj.user
Tryout_2008.vcproj
Elmax-ver089
Elmax.vsmdi
Elmax
Elmax.vcxproj.user
Elmax_2005.vcproj
Elmax_2008.vcproj
StringUtils
ElmaxNet
Properties
Local.testsettings
TestNativeElmax
app.ico
TestNativeElmax.vcxproj.user
TestNetElmax
Properties
TestNetElmax.csproj.user
TraceAndTestImpact.testsettings
Tryout
res
Tryout.ico
Tryout.vcproj
Tryout.vcxproj.user
Tryout_2008.vcproj
TryoutNet
Properties
Elmax.vsmdi
Elmax.vcxproj.user
Elmax_2005.vcproj
Elmax_2008.vcproj
Local.testsettings
app.ico
TestNativeElmax.vcxproj.user
TestNetElmax.csproj.user
TraceAndTestImpact.testsettings
Tryout.ico
Tryout.vcproj
Tryout.vcxproj.user
Tryout_2008.vcproj
Version 0.8.9 Beta
+ All integer setters and getters are renamed in the form of (S/G)etInt(Bits). Example, SetInt32
+ Breaking changes: SetChar/GetChar is replaced by SetInt8/GetInt8; The new methods process in integers(eg, 78), instead of characters(eg, 'A').
+ Changed throwing of std exception to throwing appropriate logic_error and runtime_error. 
+ Renamed 'AsCollection' to 'GetSiblings'
+ Renamed 'GetCollection' to 'GetChildren'

Version 0.8.8 Beta
+ Added aggregation functions: Count, Minimum, Maximum, Sum and Average
+ Added StrUtil.Format and StrUtil.Split to format and split strings.
+ Removed Boost FileSystem dependency from RootElement class

Version 0.8.7 Beta
+ Removed the template arguments for STL make_pair calls so that Visual C++ 11 Beta can compile the HyperElement class successfully.
+ Temporarily removed native C++ RootElement class. Plan is to have RootElement class reinstated in the new cross-platform Elmax.

Version 0.8.5 Beta
+ Ported PJ Arends' RootElement class to C#.

Version 0.8.4 Beta
+ Checked in PJ Arends' RootElement and Elmax.h header and a unit test (in UnitTestSaveAndRead.cpp) to test RootElement.

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

Version 0.8.2 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.8.1 Beta
+ Minor change for release together with the new article.

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

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

Version 0.7.5 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.7.0 Beta
+ C# library and unit tests

Version 0.6.5 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)

Share

About the Author

Shao Voon Wong
Software Developer (Senior)
Singapore Singapore
Shao Voon is from Singapore. His CodeProject contributions could range from being used in game changer Large Hadron Collider (LHC) of CERN to smash particles to something as frivolous as Maplestory game to as life changing as electrocardiography(ECG) project to everyday indispensable Irfanview image viewer.

CodeProject bestowed him a MVP award in recognition of his article contributions in 2019. In his spare time, he prefers to writing application based on 3rd party library than writing his own open source library. His interest lies primarily in computer graphics, software optimization, security and Agile methodologies.

One of these days, you can find him working on a DirectX based slideshow app called Mandy Frenzy.

You can reach him by sending a message on CodeProject or at his Coding Tidbit Blog!

Layout: fixed | fluid

Article Copyright 2016 by Shao Voon Wong
Everything else Copyright © CodeProject, 1999-2019

Server Web01
Version 2.8.190619.1