Write XML Documents on Objective-c -
this question has answer here:
- converting nsdictionary xml 3 answers
i have project need convert database entities (uml models) external file (xmi, xml file).
looking xml parser or writer objective-c, have found nsxmlparser
on apple's developer portal. can convert custom objects or nsdictionary
xml (nsstring
/nsdata
) developed library (if knows one)? can influence on app submission?
i know thats simple object manage xml content , can give me performance problems.. me thats motive dont have native library.
this easy. need know xml schema needs be. data model determine how logic works. if old xml ok, @ results convenience methods provided nsarray , nsdictionary. can writetourl or writetofile property lists xml format. can @ property list serialization docs if need greater control.
beyond that, it's pretty easy write own templating code nsstring using stringwithformat piece write whole thing file desired name via nsstring apis.
a custom templating solution end being flexible solution few string constants xml header , series of for-in loops traverse , template data.
Comments
Post a Comment