Chilkat HOME Android™ ASP Visual Basic VB.NET C# iOS (IPhone) Objective-C C++ C Unicode C++ Unicode C MFC Delphi DLL Delphi ActiveX FoxPro Java Perl PHP Extension PHP ActiveX Python PowerShell Ruby SQL Server VBScript
|
Convert HTML File to XML FileConvert HTML file to XML file. Download: Chilkat Cocoa Objective-C Libraries NSMutableString *strOutput = [NSMutableString stringWithCapacity:1000]; CkoHtmlToXml *htmlToXml = [[[CkoHtmlToXml alloc] init] autorelease]; BOOL success; // Any string argument automatically begins the 30-day trial. success = [htmlToXml UnlockComponent: @"30-day trial"]; if (success != YES) { [strOutput appendString: htmlToXml.LastErrorText]; [strOutput appendString: @"\n"]; self.mainTextField.stringValue = strOutput; return; } // Indicate the charset of the output XML we'll want. htmlToXml.XmlCharset = @"utf-8"; success = [htmlToXml ConvertFile: @"test.html" outXmlFilename: @"out.xml"]; if (success != YES) { [strOutput appendString: htmlToXml.LastErrorText]; [strOutput appendString: @"\n"]; } else { [strOutput appendString: @"Success"]; [strOutput appendString: @"\n"]; } self.mainTextField.stringValue = strOutput; |
© 2000-2013 Chilkat Software, Inc. All Rights Reserved.