|         |      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 // MDXMLProcessingInstruction.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 <gmxmlprocessinginstruction.h> | 
|         |     26 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS  | 
|         |     27 #include "gmxmldummydtd.h" | 
|         |     28 #endif | 
|         |     29  | 
|         |     30 EXPORT_C CMDXMLProcessingInstruction* CMDXMLProcessingInstruction::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 CMDXMProcessingInstruction | 
|         |     35 // @leave can Leave due to OOM | 
|         |     36 // | 
|         |     37 	{ | 
|         |     38 	CMDXMLProcessingInstruction* secPtr = new(ELeave) CMDXMLProcessingInstruction( aOwnerDocument ); | 
|         |     39 	CleanupStack::PushL( secPtr ); | 
|         |     40 	const TDesC& nodeName = KXMLProcessingInstructionNodeName; | 
|         |     41 	secPtr->SetNodeNameL( nodeName ); | 
|         |     42 	return secPtr; | 
|         |     43 	} | 
|         |     44  | 
|         |     45 EXPORT_C CMDXMLProcessingInstruction* CMDXMLProcessingInstruction::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 CMDXMLElement | 
|         |     50 // @leave can Leave due to OOM | 
|         |     51 // | 
|         |     52 	{ | 
|         |     53 	CMDXMLProcessingInstruction* secPtr = CMDXMLProcessingInstruction::NewLC( aOwnerDocument ); | 
|         |     54 	CleanupStack::Pop(1); // secPtr | 
|         |     55 	return secPtr; | 
|         |     56 	} | 
|         |     57  | 
|         |     58 CMDXMLProcessingInstruction::CMDXMLProcessingInstruction( CMDXMLDocument* aOwnerDocument ): | 
|         |     59 CMDXMLCharacterData( EProcessingInstructionNode, aOwnerDocument) | 
|         |     60 // | 
|         |     61 // Constructor | 
|         |     62 // @param aOwnerDocument The document at the root of the DOM tree | 
|         |     63 // | 
|         |     64 	{ | 
|         |     65 	} | 
|         |     66  | 
|         |     67 EXPORT_C CMDXMLProcessingInstruction::~CMDXMLProcessingInstruction() | 
|         |     68 	{ | 
|         |     69 	} | 
|         |     70  | 
|         |     71  | 
|         |     72  | 
|         |     73 // End Of File |