Click here to Skip to main content
15,892,269 members
Articles / Programming Languages / XML

An XML parser and editor with shades of a Design Pattern

Rate me:
Please Sign up or sign in to vote.
4.86/5 (14 votes)
16 Aug 2010CPOL6 min read 56.4K   2.9K   31  
A very generic XML parser whose internal implementation can be changed without affecting the rest of the source code.
#pragma once

#include "dom/DOM.hpp"

#pragma comment(lib, "xerces-c_2.lib")
#include "util/xercesversion.hpp"


#include "parsers/XercesDOMParser.hpp"
#include "util/PlatformUtils.hpp"

namespace XERCES_CPP_NAMESPACE
{
	class XercesDOMParser;
	class DOMDocument;
	class DOMElement;
	class DOMNode;
	class DOMNodeList;
	class DOMWriter;
	class DOMImplementation;
}

typedef XERCES_CPP_NAMESPACE::XercesDOMParser INTERNAL_PARSER;
typedef XERCES_CPP_NAMESPACE::DOMDocument INTERNAL_DOCUMENT;
typedef XERCES_CPP_NAMESPACE::DOMElement INTERNAL_ELEMENT;
typedef XERCES_CPP_NAMESPACE::DOMNode INTERNAL_NODE;
typedef XERCES_CPP_NAMESPACE::DOMNodeList INTERNAL_NODELIST;
typedef XERCES_CPP_NAMESPACE::DOMWriter	INTERNAL_DOMWRITER;
typedef XERCES_CPP_NAMESPACE::DOMImplementation INTERNAL_DOMIMPL;

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 Code Project Open License (CPOL)


Written By
Technical Lead Kotha Technologies
Bangladesh Bangladesh
If you are not in - you are out !
- Chapter 1

Comments and Discussions