xml/legacyminidomparser/XMLDom/SRC/GMXMLCDATASection.cpp
changeset 34 c7e9f1c97567
parent 25 417699dc19c9
child 36 172b09aa4eb6
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 // MDXMLCDATASection.cpp
       
    15 // @file
       
    16 // This class represents a CDATA section of an XML file -
       
    17 // basically it is a chunk of text which has a place in the
       
    18 // object tree but has no children.
       
    19 // 
       
    20 //
       
    21 
       
    22 #include <gmxmldomconstants.h>
       
    23 #include <gmxmlnode.h>
       
    24 #include <gmxmlcharacterdata.h>
       
    25 #include <gmxmlcdatasection.h>
       
    26 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS 
       
    27 #include "gmxmldummydtd.h"
       
    28 #endif
       
    29 
       
    30 EXPORT_C CMDXMLCDATASection* CMDXMLCDATASection::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 CMDXMCDATASection
       
    35 // @leave can Leave due to OOM
       
    36 //
       
    37 	{
       
    38 	CMDXMLCDATASection* secPtr = new(ELeave) CMDXMLCDATASection( aOwnerDocument );
       
    39 	CleanupStack::PushL( secPtr );
       
    40 	const TDesC& nodeName = KXMLCDATASectionNodeName;
       
    41 	secPtr->SetNodeNameL( nodeName );
       
    42 	return secPtr;
       
    43 	}
       
    44 
       
    45 EXPORT_C CMDXMLCDATASection* CMDXMLCDATASection::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 CMDXMCDATASection
       
    50 // @leave can Leave due to OOM
       
    51 //
       
    52 	{
       
    53 	CMDXMLCDATASection* secPtr = CMDXMLCDATASection::NewLC( aOwnerDocument );
       
    54 	CleanupStack::Pop(1); // secPtr
       
    55 	return secPtr;
       
    56 	}
       
    57 
       
    58 CMDXMLCDATASection::CMDXMLCDATASection( CMDXMLDocument* aOwnerDocument ):
       
    59 CMDXMLCharacterData( ECDATASectionNode, 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 CMDXMLCDATASection::~CMDXMLCDATASection()
       
    68 	{
       
    69 	}
       
    70 
       
    71 
       
    72 
       
    73 // End Of File