1 // Copyright (c) 2006-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Processing instruction node functions
24 #ifndef XMLENGPROCESSINGINSTRUCTION_H
25 #define XMLENGPROCESSINGINSTRUCTION_H
27 #include <xml/dom/xmlengnode.h>
32 This class represents an XML processing instruction in the DOM tree. This class
33 is usually instantiated through RXmlEngDocument::CreateProcessingInstruction().
35 class TXmlEngProcessingInstruction : public TXmlEngNode
38 /** Default constructor */
39 inline TXmlEngProcessingInstruction();
42 Gets a reference to the the target part of the processing instruction.
48 @see http://www.w3.org/TR/2004/REC-xml-20040204/#sec-pi
49 @return A reference to the target part
51 IMPORT_C TPtrC8 Target() const;
54 Gets a reference to the data part of the processing instruction.
60 @see http://www.w3.org/TR/2004/REC-xml-20040204/#sec-pi
61 @return A reference to the data part
63 IMPORT_C TPtrC8 Data() const;
66 Copies the parameter and sets the data part of the processing instruction.
67 Note: The processing instruction contents should not contain the "?>"
69 @param aData The data part to set
70 @leave - One of the system-wide error codes
72 IMPORT_C void SetDataL(const TDesC8& aData);
77 @param aInternal Processing instruction pointer
79 inline TXmlEngProcessingInstruction(void* aInternal);
83 #include <xml/dom/xmlengprocessinginstruction.inl>
84 #endif /* XMLENGPROCESSINGINSTRUCTION_H */