williamr@4: // Copyright (c) 2005-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: // williamr@4: williamr@4: williamr@4: williamr@4: /** williamr@4: @file williamr@4: @publishedAll williamr@4: @released williamr@4: */ williamr@4: #ifndef XMLENGNAMESPACERESOLVER_H williamr@4: #define XMLENGNAMESPACERESOLVER_H williamr@4: williamr@4: /** williamr@4: Provides an interface to query the namespace context of a DOM object. williamr@4: @see TXmlEngXPathEvaluator williamr@4: @see RXmlEngXPathExpression williamr@4: */ williamr@4: class MXmlEngNamespaceResolver williamr@4: { williamr@4: public: williamr@4: /** williamr@4: Searches for the prefix that is bound to the given aNamespaceUri and williamr@4: applicable in the scope of this object. williamr@4: williamr@4: @param aNamespaceUri Namespace URI to search for williamr@4: @return The sought prefix or an empty string if not found or if aNamespaceUri is the williamr@4: default namespace williamr@4: @leave - Any system wide error code williamr@4: */ williamr@4: virtual TPtrC8 LookupPrefixL(const TDesC8& aNamespaceUri) const = 0; williamr@4: williamr@4: /** williamr@4: Searches for the namespace URI that is bound to the given prefix. williamr@4: williamr@4: @param aPrefix The namespace prefix to search for williamr@4: @return The sought URI or an empty string if the prefix is not bound williamr@4: @leave - Any system wide error code williamr@4: */ williamr@4: virtual TPtrC8 LookupNamespaceUriL(const TDesC8& aPrefix) const = 0; williamr@4: }; williamr@4: williamr@4: #endif /* XMLENGNAMESPACERESOLVER_H */ williamr@4: