Document Object Model based XML Handling in ITK

Gong, Ren Hui1*,Yaniv, Ziv
1.Childrens National Medical Center USA
Abstract

Abstract

The Insight Segmentation and Registration Toolkit (ITK) previously provided a framework for parsing Extensible Markup Language (XML) documents using the Simple API for XML (SAX) framework. While this programming model is memory efficient, it places most of the implementation burden on the user. We provide an implementation of the Document Object Model (DOM) framework for parsing XML documents. Using this model, user code is greatly simplified, shifting most of the implementation burden from the user to the framework. The provided implementation consists of two tiers. The lower level tier provides functionality for parsing XML documents and loading the tree structure into memory. It then allows the user to query and retrieve specific entries. The upper tier uses this functionality to provide an interface for mimicking a serialization and de-serialization mechanism for ITK objects. The implementation described in this document was incorporated into ITK as part of release 4.2.

Keywords

Document Object Model (DOM)Simple API for XML (SAX)eXtensible Markup Language (XML)
Manuscript
Source Code and Data

Source Code and Data

CodeExamplesCMakeLists.txt202 BDataDOMTestObject.xml62 BMySettings.xml115 BRegistrationResult.xml441 BTier1CMakeLists.txt213 BReadMain.cpp1.3 KBWriteMain.cpp1.5 KBTier2CMakeLists.txt295 BDOMTestObject.h947 BDOMTestObjectDOMReader.h2.4 KBDOMTestObjectDOMWriter.h1.9 KBReadMain.cpp793 BWriteMain.cpp714 BUtilitiesCMakeLists.txt226 BFancyStringDemo.cpp926 BFileToolsDemo.cpp553 B

Select a file to preview