Skip to content

Commit

Permalink
Removed references to elementFromURL
Browse files Browse the repository at this point in the history
This method has been deprecated.
  • Loading branch information
John Blanco committed Mar 17, 2013
1 parent a399645 commit 993f083
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ RaptureXML supports ARC. In fact, it does so without a branch. The code automa


# Getting Started # # Getting Started #


RaptureXML processes XML in two steps: load and path. This means that you first load the XML from any source you want such as file, data, string, or even from a URL. Then, you simply use its query language to find what you need. RaptureXML processes XML in two steps: load and path. This means that you first load the XML from any source you want such as file, data, or string. Then, you simply use its query language to find what you need.


You can load the XML with any of the following constructors: You can load the XML with any of the following constructors:


RXMLElement *rootXML = [RXMLElement elementFromXMLString:@"...my xml..." encoding:NSUTF8StringEncoding]; RXMLElement *rootXML = [RXMLElement elementFromXMLString:@"...my xml..." encoding:NSUTF8StringEncoding];
RXMLElement *rootXML = [RXMLElement elementFromXMLFile:@"myfile.xml"]; RXMLElement *rootXML = [RXMLElement elementFromXMLFile:@"myfile.xml"];
RXMLElement *rootXML = [RXMLElement elementFromXMLFilename:@"myfile" elementFromXMLFilename:@"xml"]; RXMLElement *rootXML = [RXMLElement elementFromXMLFilename:@"myfile" elementFromXMLFilename:@"xml"];
RXMLElement *rootXML = [RXMLElement elementFromURL:[NSURL URLWithString:@"...my url..."]];
RXMLElement *rootXML = [RXMLElement elementFromXMLData:myData]; RXMLElement *rootXML = [RXMLElement elementFromXMLData:myData];


These constructors return an RXMLElement object that represents the top-level tags. Now, you can query the data in any number of ways. These constructors return an RXMLElement object that represents the top-level tags. Now, you can query the data in any number of ways.
Expand Down

0 comments on commit 993f083

Please sign in to comment.