Chilkat HOME Android™ Classic ASP C C++ C# Mono C# .NET Core C# C# UWP/WinRT DataFlex Delphi ActiveX Delphi DLL Visual FoxPro Java Lianja MFC Objective-C Perl PHP ActiveX PHP Extension PowerBuilder PowerShell PureBasic CkPython Chilkat2-Python Ruby SQL Server Swift 2 Swift 3/4 Tcl Unicode C Unicode C++ Visual Basic 6.0 VB.NET VB.NET UWP/WinRT VBScript Xojo Plugin Node.js Excel Go
(Unicode C) SearchAllForContentDemonstrates the SearchAllForContent method.
#include <C_CkXmlW.h> void ChilkatSample(void) { HCkXmlW xml; HCkXmlW xBeginAfter; HCkXmlW xFound; BOOL success; BOOL searchForMore; xml = CkXmlW_Create(); success = CkXmlW_LoadXmlFile(xml,L"qa_data/xml/pigs.xml"); if (success != TRUE) { wprintf(L"%s\n",CkXmlW_lastErrorText(xml)); CkXmlW_Dispose(xml); return; } xBeginAfter = CkXmlW_GetSelf(xml); xFound = CkXmlW_SearchAllForContent(xml,xBeginAfter,L"*pig*"); searchForMore = TRUE; while ((searchForMore == TRUE)) { wprintf(L"%s\n",CkXmlW_tag(xFound)); wprintf(L"%s\n",CkXmlW_content(xFound)); wprintf(L"--\n"); CkXmlW_Dispose(xBeginAfter); xBeginAfter = xFound; xFound = CkXmlW_SearchAllForContent(xml,xBeginAfter,L"*pig*"); searchForMore = CkXmlW_getLastMethodSuccess(xml); } CkXmlW_Dispose(xBeginAfter); CkXmlW_Dispose(xml); } |
© 2000-2019 Chilkat Software, Inc. All Rights Reserved.