williamr@4: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@4: // All rights reserved. williamr@4: // This component and the accompanying materials are made available williamr@4: // under the terms of "Eclipse Public License v1.0" williamr@4: // which accompanies this distribution, and is available williamr@4: // at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@4: // williamr@4: // Initial Contributors: williamr@4: // Nokia Corporation - initial contribution. williamr@4: // williamr@4: // Contributors: williamr@4: // williamr@4: // Description: williamr@4: // Processing instruction node functions williamr@4: // williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@4: @file williamr@4: @publishedAll williamr@4: @released williamr@4: */ williamr@4: #ifndef XMLENGPROCESSINGINSTRUCTION_H williamr@4: #define XMLENGPROCESSINGINSTRUCTION_H williamr@4: williamr@4: #include williamr@4: williamr@4: williamr@4: williamr@4: /** williamr@4: This class represents an XML processing instruction in the DOM tree. This class williamr@4: is usually instantiated through RXmlEngDocument::CreateProcessingInstruction(). williamr@4: */ williamr@2: class TXmlEngProcessingInstruction : public TXmlEngNode williamr@2: { williamr@2: public: williamr@4: /** Default constructor */ williamr@2: inline TXmlEngProcessingInstruction(); williamr@2: williamr@2: /** williamr@4: Gets a reference to the the target part of the processing instruction. williamr@4: williamr@4: @code williamr@4: williamr@4: @endcode williamr@4: williamr@4: @see http://www.w3.org/TR/2004/REC-xml-20040204/#sec-pi williamr@4: @return A reference to the target part williamr@4: */ williamr@2: IMPORT_C TPtrC8 Target() const; williamr@2: williamr@2: /** williamr@4: Gets a reference to the data part of the processing instruction. williamr@4: williamr@4: @code williamr@4: williamr@4: @endcode williamr@4: williamr@4: @see http://www.w3.org/TR/2004/REC-xml-20040204/#sec-pi williamr@4: @return A reference to the data part williamr@4: */ williamr@2: IMPORT_C TPtrC8 Data() const; williamr@2: williamr@2: /** williamr@4: Copies the parameter and sets the data part of the processing instruction. williamr@4: Note: The processing instruction contents should not contain the "?>" williamr@4: sequence williamr@4: @param aData The data part to set williamr@4: @leave - One of the system-wide error codes williamr@4: */ williamr@2: IMPORT_C void SetDataL(const TDesC8& aData); williamr@2: williamr@2: protected: williamr@2: /** williamr@4: Constructor williamr@4: @param aInternal Processing instruction pointer williamr@4: */ williamr@2: inline TXmlEngProcessingInstruction(void* aInternal); williamr@2: }; williamr@2: williamr@2: williamr@4: #include williamr@4: #endif /* XMLENGPROCESSINGINSTRUCTION_H */ williamr@2: