• Stars
    star
    289
  • Rank 143,419 (Top 3 %)
  • Language
    Objective-C
  • License
    Apache License 2.0
  • Created over 13 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

HTML and XML parser for iOS and OSX, supports XPath

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.

More Repositories

1

Foxbrowser

Foxbrowser is an iOS web-browser App, with the ability to synchronize bookmarks, history and tabs with Firefox
Objective-C
85
star
2

SGTabs

Tab component for iOS 5+. You can show your ViewControllers in tabs, it is possible to add and remove tabs on the fly
Objective-C
75
star
3

SGViewPager

Implementation of an animated ViewPager for iOS
Objective-C
65
star
4

DirectoryWatchdog

Utility class to monitor directorys via kqueue (Useful for iTunes file sharing on iOS). Example Project is for iOS 5, code works on all platforms with blocks support, iOS as well as OSX
Objective-C
48
star
5

SGURLProtocol

Custom CFHTTPMessage based NSURLProtocol subclass, for supporting HTTP Authentication with UIWebiView
Objective-C
18
star
6

TotalShare

App that allows viewing various document formats (epup, pdf, jpg, png, rtf, doc, iworks...). Sharing support via iCloud + a http server where everyone can download the doc's on the local wifi
Objective-C
17
star
7

InstaWebcam

iOS App to stream the camera video feed to the web
C
12
star
8

AFGDataXMLRequestOperation

AFNetworking Extension for GDataXML
Objective-C
6
star
9

bnginx

Yet another blog software, based on revel. It runs my blog/website
HTML
6
star
10

Libav-iOS6

Libav with script for compiling for iOS 6
C
3
star
11

SGShareKit

iOS sharing view. Supports Social.framework, Twitter.framework, MessageUI.framework
Objective-C
3
star
12

iOS-MensaPlanner

Mensa app for Aachen, Germany
Objective-C
2
star
13

CTDO-Trash

http://trash.ctdo.de/ for iOS
Objective-C
2
star
14

Achtung-die-Kurve-WS

The old game classic Achtung die Kurve in javascript with multiplayer support through websocket
JavaScript
2
star
15

SGPresentation

Some UIPresentationController and matching animations UIViewControllerAnimatedTransitioning
Objective-C
1
star
16

iDriveRobot

Nothing there to see yet
Objective-C
1
star
17

asiodemo

Asio Demo for c++ meetup
C++
1
star
18

SGPullParser

Objective-C wrapper for <libxml/xmlreader.h>. Should be pretty efficent
Objective-C
1
star
19

fly2moon

Java
1
star
20

Lr3D

JavaScript
1
star
21

HoldCircleButton

An android widget that presents a circular button designed to for actions that require caution. The idea is to visualize that the user must press the button at least a certain amount of time, by showing the progres
Java
1
star