Friday, 15 March 2013

ios - Xml + schema in swift -



ios - Xml + schema in swift -

i know nsxmlparser, need utilize info in xml-document.

here read, nsxmlparser supports schema, new in ios developing, can show me little example, how can parse xml-document schema, json document nsdictionary:

var jsonresult: nsdictionary = nsjsonserialization.jsonobjectwithdata(self.data, options: nsjsonreadingoptions.mutablecontainers, error: nil) nsdictionary

thanks!

i made new simple , lightweight xml parser ios in swift - aexml

you can utilize read xml info this:

let somevalue = xmldocument["element"]["child"]["anotherchild"].value

or can utilize build xml string this:

let document = aexmldocument() allow element = document.addchild("element") element.addchild("child") document.xmlstring // returns xml string of entire document construction

i hope helps.

ios swift

No comments:

Post a Comment