xml/legacyminidomparser/xmldom/src/gmxmldocumentelement.cpp
changeset 34 c7e9f1c97567
parent 0 e35f40988205
equal deleted inserted replaced
25:417699dc19c9 34:c7e9f1c97567
       
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // MDXMLDocumentElement.CPP
       
    15 // @file
       
    16 // This file contains the implementation of the CMDXMLDocumentElement class.
       
    17 // This class represents a generic XML element with attributes 
       
    18 // stored as name-value pairs.  DTD-specific element classes
       
    19 // will store their attributes as member variables.
       
    20 // 
       
    21 //
       
    22 
       
    23 #include <gmxmldomconstants.h>
       
    24 #include <gmxmldocument.h>
       
    25 #include <gmxmldocumentelement.h>
       
    26 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS 
       
    27 #include "gmxmldummydtd.h"
       
    28 #endif
       
    29 
       
    30 EXPORT_C CMDXMLDocumentElement* CMDXMLDocumentElement::NewLC( CMDXMLDocument* aOwnerDocument )
       
    31 //
       
    32 // Two phase constructor
       
    33 // @param aOwnerDocument Pointer to the document at the root of the DOM tree
       
    34 // @return Created CMDXMLDocumentElement
       
    35 // @leave can Leave due to OOM
       
    36 //
       
    37 	{
       
    38 	CMDXMLDocumentElement* elPtr = new(ELeave) CMDXMLDocumentElement( aOwnerDocument );
       
    39 	CleanupStack::PushL( elPtr );
       
    40 	elPtr->ConstructL();
       
    41 	elPtr->SetNodeNameL( KXMLDocumentElementNodeName );
       
    42 	return elPtr;
       
    43 	}
       
    44 
       
    45 EXPORT_C CMDXMLDocumentElement* CMDXMLDocumentElement::NewL( CMDXMLDocument* aOwnerDocument)
       
    46 //
       
    47 // Two phase constructor
       
    48 // @param aOwnerDocument Pointer to the document at the root of the DOM tree
       
    49 // @return Created CMDXMLDocumentElement
       
    50 // @leave can Leave due to OOM
       
    51 //
       
    52 	{
       
    53 	CMDXMLDocumentElement* elPtr = CMDXMLDocumentElement::NewLC( aOwnerDocument);
       
    54 	CleanupStack::Pop(1); // elPtr
       
    55 	return elPtr;
       
    56 	}
       
    57 
       
    58 CMDXMLDocumentElement::CMDXMLDocumentElement( CMDXMLDocument* aOwnerDocument ):
       
    59 CMDXMLElement( ETrue, aOwnerDocument)
       
    60 //
       
    61 // Constructor
       
    62 // @param aOwnerDocument Pointer to the document at the root of the DOM tree
       
    63 //
       
    64 	{
       
    65 	}
       
    66 
       
    67 EXPORT_C CMDXMLDocumentElement::~CMDXMLDocumentElement()
       
    68 	{
       
    69 	}
       
    70 
       
    71 
       
    72 
       
    73 
       
    74 
       
    75 // End Of File