1,263 questions
0
votes
2
answers
164
views
Accessing the Subnodes of the nodes under parent using groovy
I am novice to groovy.I am trying to reformat the XML using groovy.
I am creating XML node for each date between dates orderstartdate and StartDate. But one of the child node(prod) has subnodes(id and ...
0
votes
0
answers
18
views
NSXMLParser returns Error 0 but doesn't parse a file
The following code:
- (void)ParseFile:(id)sender
{
NSLog(@"Parsing URL: '%@'", FileURL);
NSXMLParser *parser = [[NSXMLParser alloc] initWithContentsOfURL:FileURL];
[parser setDelegate:self];
...
0
votes
0
answers
136
views
Swift XMLParser refuses to parse xml file with 'plist' extension
I have found a strange behavior when trying to parse a (xml-)plist file using XMLParser:
Parsing fails apparently just because of the 'plist'-extension – every other extension seems to work:
import ...
1
vote
0
answers
345
views
Identifying and formatting XML String to readable format in XMLParser
I am working in Swift and I have a set of Data that I can encode as a String like this:
<CONTAINER><Creator type="NSNull"/><Category type="NSNull"/><UMID type=&...
0
votes
2
answers
83
views
Way to determine XPath to retrieve data of a specific attribute
I am working on an integration and the response I am getting in XML format. I need to parse it and get the attribute values using javascript. I am trying to get value from node <ab:specific_field&...
4
votes
1
answer
714
views
Parse a specific tag and save as String with XMLParser in Swift
I want to parse the below response and save only the "pdf-info" tag's value as a String,
let serverResponse = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xfdf xmlns=\"http://ns.adobe.com/...
1
vote
1
answer
1k
views
Swift XMLParser cannot parse the whole string [duplicate]
I tried to parse a let contentString = "<p>abcdefg</p><p>hijklmn</p><p>123456</p>", which are html tags, with XMLParser.
When I print elementName and content ...
0
votes
0
answers
458
views
I need to parse xml with XMLparser and swift
I'm trying to parse a xml file from a server with XMLparser in swift,
I have a var m_items that is a NSMutableArray and a CItemData object that has
var m_id:String = ""
var m_type:CLong = ...
2
votes
2
answers
2k
views
XMLParser Delegate Methods not Called
I'm trying to abstract an XML parser into a custom class to run it from a VC. It compiles perfectly and my error handler shows up success. However, the actual delegate methods are skipped over. No ...
0
votes
1
answer
344
views
Custom XML Parser - what to do when some keys don't exist?
Ok, I am working off Implementing a custom Decoder in Swift 4 and it follows that the parser looks for these keys in the XML:
struct RSSChannel: Codable {
var title: String
var pubDate: Date
...
0
votes
1
answer
1k
views
Groovy xmlSlurper to remove empty fields
I have a code that is removing empty fields using XMLParser, I wonder if could you help me to have a version of the same using xmlSlurper instead.
The code is below:
File doc = new File("C:/Temp/...
1
vote
1
answer
639
views
XMLReader not reading cdata
I have a problem. I wrote this code but I can't read <![CDATA[Epsilon Yayınları]]>. Items with cdata, when I get them it's empty. Is there an alternative solution?
XML:
<urunler>
<...
1
vote
1
answer
888
views
Trying to parse XML from URL to PickerView with swift
I'm trying to parse XML with XMLParser and put it on a PickerView. This is my code:
Main code:
import UIKit
class ViewController: UIViewController, XMLParserDelegate {
@IBOutlet weak var ...
0
votes
1
answer
866
views
How to reload or update a viewController's view once a file is saved
Is it possible to reload/update a viewController's view once a file gets saved in the documents folder?
If yes, kindly suggest how to accomplish this.
I'm trying to save a file in AppDelegate, but ...
0
votes
0
answers
60
views
NSXMLParser stop parsing and return entire NSXMLNode as string
How would I go about telling NSXMLParser to stop parsing a particular node, and just return all the inner content as a string?
for example:
<doc>
<hello><yes>no</yes><...
0
votes
1
answer
2k
views
how to parse xml response in objective c
i'm getting xml type of response from server but i'm unable to get the value by parsing do no where i am missing something
This was the sample Response from server :
<admin>
<logindetails
...
-1
votes
1
answer
464
views
How to parse the media:group tag in the rss feed in iOS?
I tried to parse the "media:group" tag manually or via FeedKit swift. But getting the nil response for this. Please let me know how to parse this tag.
This is url of rss feed http://www.rollingstone....
-3
votes
1
answer
230
views
XMLParser enclosure attributes for AEXML library
I am using a XMLParser Library. I have a xmlDoc and I don't know how can handle some tag values. For example:
<item>
<title>.....</title>
<description>....</description>
...
-1
votes
1
answer
441
views
XMLParser splits elements on “ß” character
I have this code in an iOS Playground (Swift 3, Xcode 8.2.1):
import UIKit
import PlaygroundSupport
PlaygroundPage.current.needsIndefiniteExecution = true
class ParserDelegate: NSObject, ...
0
votes
1
answer
35
views
NSXMLParser expected result is repeated over and over and adding 1 item at time
Im new to Objective-C and XML please help me with my simple problem.
I have this XML file.XML sample file
I want to put the parsed XML to NSDictionary. The problem is that the result is like this ...
1
vote
0
answers
36
views
Wrong UILabel Hebrew text
Good day, the problem is this - I have to get a string from the server:
שיעור ראשון - הרב חגי לונדין but when try do NSLog i saw - ׳¢׳¨׳•׳¥ ׳׳׳™׳¨ - ׳׳•׳׳׳¦׳™׳ ׳“׳£ ׳”׳‘׳™׳×
or \U05f3\U201c\U05f3\...
1
vote
1
answer
62
views
data from server is not getting displayed in tableview
i have 2 screens ,in 1 st when i click a button it should go to 2 nd screen get data from server and display in table view in 2 nd screen.but with following code i am unable to display data in table ...
0
votes
1
answer
65
views
Cant get/use parsed elements in a custom class to use on other classes
So I've been struggling with this for longer than I care to keep track of.
I've parsed the elements I need, but i cant figure out how to call'em on the other classes.
Here is the custom class i ...
0
votes
1
answer
96
views
How to keep line break with NSXMLParser in Objective-c?
I'm parsing a text received in json, and when the function parser of NSXMLParser receive the NSString, sometimes, if the end word is the last word, in the next time join the next word, and it is ...
0
votes
0
answers
89
views
XMLParser.parse() stops execution
I'm exhausted, have no idea what's going on.
private var _parser: XMLParser = XMLParser();
public var delegate: ModelFactoryDelegate?;
override internal func response() -> Bool
{
print("...