Questions tagged [gdataxml]

Questions about GDataXML, Google’s XML processing library, may have this tag.

63 questions
82
votes
2 answers

Property cannot be found in forward class object

I'm adapting This tutorial to my app, and I've got it boiled down to one last error, which is stopping me in my tracks. The program is unable to find a property in another file, but that property is clearly defined. Here is the code in question: The…
Spencer Cole
  • 1,122
  • 1
  • 10
  • 20
8
votes
2 answers

Xcode 5 - How to add Header Search Path and use GDataXMLNode

I am trying to use GDataXMLNode to parse an XML file. I am following the tutorial on this blog: http://www.raywenderlich.com/725/xml-tutorial-for-ios-how-to-read-and-write-xml-documents-with-gdataxml My problem is trying to add the GDataXMLNode to…
ngoue
  • 1,045
  • 1
  • 12
  • 25
7
votes
2 answers

iOS - XML Pretty Print

I am using GDataXML in my iOS application and want a simple way to format and print an XML string - "pretty print" Does anyone know of an algorithm in Objective C, or one that works in another language I can translate?
adam
  • 22,404
  • 20
  • 87
  • 119
6
votes
3 answers

How to make GDATAXML compatible with ARC in XCODE 4.2?

I tried to convert GDATAXML Lib to ARC automatically with the refractor -> Convert to ARC Objective-C in XCode 4.2. The ARC converter gives the following error: result = [NSString stringWithUTF8String:(const char *) chars]; if (cacheDict) { …
Al-Noor Ladhani
  • 2,413
  • 1
  • 22
  • 14
4
votes
1 answer

parse xml with namespaces with gdata xml

i am developping an ios application and i am parsing my xml with gdataxml, but i am doing it wrong, my nslog is null NSError *error = nil; GDataXMLDocument *xmlResult = [[GDataXMLDocument alloc] initWithData:data options:0 error:&error]; if (error)…
samir
  • 4,501
  • 6
  • 49
  • 76
4
votes
1 answer

XPath with GDataXMLNode in Objective C

I am making an iOS app where I'm using the GDataXML library for xml parsing in Objective C. I have the following xml (that I get as an soap response):
lgdev
  • 244
  • 1
  • 11
4
votes
1 answer

GDataXML write file with xmlns namespace

I'm using GDataXML and I encounter some problems to write a XML file. I followed Raywenderlich's tutorial but i have to add some namespaces. for example after this: [FooElement addChild:bar1Element]; [FooElement addChild:bar2Element]; …
manar
  • 151
  • 8
3
votes
1 answer

GdataXML (Ray Wenderlich's iPhone RSS Reader Tutorial)

I'm following Ray Wenderlich's tutorial on creating a Simple RSS feed app. Its great so far but I've found an issue. At the point where he tells you to download GDataXML, he gives you a link that seems to not work, or have the desired…
tyler53
  • 429
  • 1
  • 5
  • 16
3
votes
1 answer

GDataXML get child node

There is my XML data: The Powerful Academician Able to Reduce Tobacco Hazards http://china15min.com/2013/03/26/the-powerful-academician-able-to-reduce-tobacco-hazards/ …
jxdwinter
  • 2,339
  • 6
  • 36
  • 56
3
votes
2 answers

ARC autoreleases too early (?)

I have a method call in class A: GDataXMLElement *infoElement = [self getElementFromFilePath:filePath]; NSString *testStringA = [infoElement attributeForName:@"someAttribute"].stringValue; and the method implementation in class…
marimba
  • 3,116
  • 5
  • 26
  • 29
3
votes
1 answer

How to change a value of xml tag using GDataXML in xcode 4.3?

I am new to using GDataXML to parse an xml file. I want to change the value of some intermediate xml tag in the file & write it back to the file. Eg. I have following file..
3
votes
0 answers

How can I make GDataXML ignore comments?

When GDataXML parses this line It gives me the comment for now, the first answer is the right one as a child element. Is this expected behavior for an XMLParser? How can I…
Ziggy
  • 21,845
  • 28
  • 75
  • 104
2
votes
1 answer

iPhone - difference between GDataXMLNode and GDataXMLElement, and how to use them

As the google doc is not available anymore, I'm lost with those concepts. What is a node, and what is an element (that inherits the node) ? How can I switch from nodes to elements. I mean, for example, if I write : NSError* error; NSData* xmlData…
Oliver
  • 23,072
  • 33
  • 138
  • 230
2
votes
4 answers
2
votes
1 answer

Properly loading and processing XML without memory wasted

I am in the final stages of tweaking my first iphone app for release and am trying to shave off kilobytes where I can. I have a process that syncs some data with my server on start of the app, and I noticed when I commented that out, my app is…
box86rowh
  • 3,415
  • 2
  • 26
  • 37
1
2 3 4 5