TVerdict CXmlEngXPathUtilsToBooleanTest::TestKXmlEngXPathUtilsToBoolean() { //Create the dom utils object TInt err = KErrNone; _LIT8(KLit1, "asdfds"); _LIT8(KLit2, "xzcvcv"); _LIT8(KLit3, "lklklk"); TBufC8<30> aLocalName(KLit1); TBufC8<30> aNamespaceUri(KLit2); TBufC8<30> aPrefix(KLit3); RXmlEngDOMImplementation domImpl; domImpl.OpenL(); RXmlEngDocument doc; doc.OpenL(domImpl); doc.CreateDocumentElementL(aLocalName, aNamespaceUri, aPrefix); TXmlEngElement aElement; //For code coverage TBool isEmpty = XmlEngXPathUtils::ToBoolean(aElement); doc.Close(); domImpl.Close(); if (KErrNone != err) { return EFail; } return EPass; }