syncmlfw/common/wbxml/src/XMLElement.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 09:07:52 +0200
changeset 0 b497e44ab2fc
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  XML element class implementation.
*
*/


// ------------------------------------------------------------------------------------------------
// Includes
// ------------------------------------------------------------------------------------------------

#include "xmlelement.h"
#include "smldtd.h"

// ------------------------------------------------------------------------------------------------
// TElementParams
// ------------------------------------------------------------------------------------------------
EXPORT_C TXMLElementParams::TXMLElementParams( TAny* aCallbacks, CNSmlStack<CXMLElement>* aCmdStack, CNSmlStack<CXMLElement>* aCleanupStack ) :
	iCallbacks(aCallbacks), iCmdStack(aCmdStack), iCleanupStack(aCleanupStack)
	{
	}

// ------------------------------------------------------------------------------------------------
// CXMLElement
// ------------------------------------------------------------------------------------------------
EXPORT_C CXMLElement::CXMLElement()
	{
	}

EXPORT_C CXMLElement::~CXMLElement()
	{
	}

EXPORT_C CXMLElement* CXMLElement::BeginElementL( TUint8 /*aTag*/, const TXMLElementParams& /*Params*/ )
	{
	return 0;
	}

// ------------------------------------------------------------------------------------------------
EXPORT_C CXMLElement::TAction CXMLElement::EndElementL( TAny* /*aCallbacks*/, TUint8 /*aTag*/ )
	{
	return EPop;
	}


// ------------------------------------------------------------------------------------------------
EXPORT_C TBool CXMLElement::NeedsCleanup() const
	{
	return EFalse;
	}

// ------------------------------------------------------------------------------------------------
EXPORT_C void CXMLElement::SetDataL( const TDesC8& /*aData*/ )
	{
	}

// ------------------------------------------------------------------------------------------------
EXPORT_C TPtrC8 CXMLElement::Data() const
	{
	return TPtrC8();
	}

// ------------------------------------------------------------------------------------------------
EXPORT_C TBool CXMLElement::Validate()
	{
	return ETrue;
	}