Questions tagged [nsxmlelement]

Instances of the NSXMLElement class represent element nodes in an XML tree structure. An NSXMLElement object may have child nodes, specifically comment nodes, processing-instruction nodes, text nodes, and other NSXMLElement nodes. It may also have attribute nodes and namespace nodes associated with it.

38 questions
10
votes
3 answers

NSXMLParser can't parse special characters (accents)

I'm using NSXMLParser to parse an xml from a url (my code is almost exactly the same as here) Some of the elements contain special characters like "á" which causes a word lik ándre to split into two (á and ndre). Here is my loadXMLByURL -(id)…
Andrew Davis
  • 2,310
  • 1
  • 24
  • 43
4
votes
3 answers

NSXMLElement with solo tag . ie.

I'm trying to create a XML string which should contain solo tags (ie. tag without separate closing tags) I am able to create normal xml tags like using the code NSXMLElement *childElement=[[NSXMLElement…
Renjith
  • 83
  • 1
  • 7
3
votes
0 answers

-[NSXMLNode nodesForXPath:error:] returns empty array while it should not

I am trying to parse an Atom feed. I have extended NSXMLNode with this method through a category: - (NSString *)stringValueForNodeAtXPath:(NSString *)XPath error:(NSError **)error { NSArray *nodes = [self nodesForXPath:XPath error:error]; if…
user142019
3
votes
1 answer

Saving NSXMLDocument escaping HTML for certain NSXMLElements

For my application I have to save an XML document containing a few elements with HTML-text. Example as the result should be: <p>Sample text.</p> etc... But when I add this html…
Marius
  • 258
  • 1
  • 9
2
votes
2 answers

Adding XML element to existing XML element in xml file C#

Please i'm trying to insert data into xml, this is the current format of my xml file after inserting data
MIcheal David
  • 149
  • 1
  • 4
  • 18
2
votes
2 answers

How to select a particular Node name and its values in XML using Oracle SQL query?

I have a table called SOAP_MONITORING in which i have RESPONSE_XML column which is CLOB datatype. In this column large xml string is stored. I want to get the node name and node value from this xml string. Here is my xml :
user1930857
2
votes
1 answer

Get text value only from NSXMLElement without the text of child nodes

I use KissXML, it is a drop replacement for NSXMLDocument, etc. This is contents of my NSXMLElement: baker ˈbeɪkə baker пекарь, булочник I want to get the text value of a NSXMLElement Node without the text of…
Denis Kutlubaev
  • 15,320
  • 6
  • 84
  • 70
1
vote
1 answer

Exporting SQL table as XML

I have three tables namely Customer, Download, Games in portgres with following fields, |-----------| | Customer | |-----------| | cust_ID | |-----------| | name | |-----------| | country | |-----------| |-----------| | Download …
Ashesh Nair
  • 317
  • 5
  • 21
1
vote
1 answer

XMLElement with tags in between String

I am creating a XML document and trying to insert tags in between XMLElement as below let tEle = XMLElement.element(withName: "xuv") as? XMLElement let segEle = XMLElement.element(withName: "seg") as? XMLElement segEle?.stringValue = "Sample Text…
Shiva Kumar
  • 389
  • 3
  • 22
1
vote
2 answers

Sitemap image element

i have a class for build xml sitemap in c# , i use it in a mvc controller to generate sitemap : public class Location { public enum eChangeFrequency { always, hourly, daily, …
hosein
  • 23
  • 4
1
vote
1 answer

How to remove ELEMENTs from XMLELEMENT in Oracle 11g

I am trying to get rid of few changes while using XMLELEMENT. Below is an example: SELECT XMLAGG(XMLELEMENT(E, ' ---- test using & (Ampersand) and '' (Apostrophe) ---- ')).EXTRACT('//text()').GETCLOBVAL() FROM DUAL; It produces a HUGECLOB: -- test…
user3360094
  • 57
  • 10
1
vote
0 answers

Add a new NSXMLElement to an existing NSXMLDocument

I have following NSXMLDocument: 1234 Now I would like to add another NSXMLElement directly behind the first…
3ef9g
  • 781
  • 2
  • 9
  • 19
1
vote
2 answers

Create XML elements from user input

I am trying to take user input from a console and feed that into a XML file. Evrytime the user moves on to the next line I want to take the string they typed in and create a new element. Here is what I am trying to achieve:
user3131493
  • 53
  • 1
  • 7
1
vote
1 answer

C# How do I read Excel cell XML values with character level formatting? (Multiple elements within )

I am working on a small application that will read the contents of an excel worksheet and import all the data as strings into a windows form datagridview. I have successfully implemented Dietmar Schoder's code example to do this. Special thanks to…
1
vote
0 answers

Recursively delete attribute from XmlElement and its children on .NET 3.5

Which is the best, most tidy way to delete any attribute with name A, on an XmlElement and recursively? Ive seen other similar questions but the answer is always the Attribute.Remove() function, which is only available on framework 4.5 or superior.…
user282724
  • 21
  • 4
1
2 3