Latest 1.4.1
Homepage https://github.com/graetzer/GDataXML-HTML
License Apache License, Version 2.0
Platforms osx , ios , tvos , watchos , requires ARC
Authors

Description

Pod Version
Pod Platform
Build Status

GDataXML-HTML is a HTML/XML parser for iOS and OSX, based on Google’s GDataXML. As the name suggest it adds support for the HTMLparser module of libxml2 and enables you to deal with non validating XML or HTML.

So you can use e.g. XPath to parse Websites with reasonable performance

Use in your own project

Install with CocoaPods

pod ‘GDataXML-HTML’, ‘~> 1.4.1’

Manually

  1. First add the files from the Pod/Classes folder in this project to your source tree, then include them somewhere in your code,

  2. In Xcode choose the project file (in the project navigator, the top item).

  3. In the list choose your project target and select ‘Build Settings’ at the top of the window.
    Then you should see a list of build options.

  4. Add this line to ‘Header Search Paths’ (use search bar to find the right option)
    /usr/include/libxml2

  5. Add this line to ‘Other Linker Flags’:
    -lxml2

Examples

There are usage examples inside the GDataXML_HTMLViewController.m file.
Basically the library builds an object library of the entire XML DOM. This library
adds convenient Objective-C types around the libxml parsing library.

Other examples for GDataXML on the web:

  1. http://www.raywenderlich.com/725/how-to-read-and-write-xml-documents-with-gdataxml

  2. http://dubydigital.com/iphone/?p=59

Licence

Original GDataXML:
Copyright (c) 2008 Google Inc

Example project and HTML addons:
Copyright (c) 2012-2014 Simon Grätzer

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Latest podspec

{
    "name": "GDataXML-HTML",
    "version": "1.4.1",
    "summary": "An XML/HTML Parser for iOS and OSX, based on Google's GDataXML.",
    "description": "GDataXML implements parts of NSXML so it's easy to parse XML or HTML with a DOM style API includingnXPath support.nThis fork of the original GDataXML adds support for the HTMLparser module ofnlibxml2 and allows you to deal with non validating XML in a simple way.",
    "homepage": "https://github.com/graetzer/GDataXML-HTML",
    "license": "Apache License, Version 2.0",
    "authors": {
        "Simon Grau0308tzer": "[email protected]"
    },
    "source": {
        "git": "https://github.com/graetzer/GDataXML-HTML.git",
        "tag": "1.4.1"
    },
    "source_files": "Pod/Classes",
    "libraries": "xml2",
    "requires_arc": true,
    "xcconfig": {
        "HEADER_SEARCH_PATHS": "$(inherited) $(SDKROOT)/usr/include/libxml2"
    },
    "platforms": {
        "osx": null,
        "ios": null,
        "tvos": null,
        "watchos": null
    }
}

Pin It on Pinterest

Share This