• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Lists to XML ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lists to XML ?


  • Subject: Re: Lists to XML ?
  • From: Jean-Christophe Helary <email@hidden>
  • Date: Fri, 24 Mar 2017 22:15:28 +0900

> On Mar 24, 2017, at 21:59, Steve Mills <email@hidden> wrote:
>
>> Now, what if I want to add an attribute and it's string value to an element?
>
> Use NSXMLNode's + (id)attributeWithName:(NSString*)name stringValue:(NSString*)stringValue; to create an attribute object, then you can use addAttribute to add that object to the element. There's also -setAttributesWithDictionary: which is really handy if you have everything you need right up front:
>
> [elem setAttributesWithDictionary:@{@"name":theName, @"id":theID}];

Trying that right now.

Jean-Christophe
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re: Lists to XML ?
      • From: Jean-Christophe Helary <email@hidden>
References: 
 >Lists to XML ? (From: Jean-Christophe Helary <email@hidden>)
 >Re: Lists to XML ? (From: Shane Stanley <email@hidden>)
 >Re: Lists to XML ? (From: Jean-Christophe Helary <email@hidden>)
 >Re: Lists to XML ? (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Lists to XML ?
  • Next by Date: Re: Detect when I start to work...
  • Previous by thread: Re: Lists to XML ?
  • Next by thread: Re: Lists to XML ?
  • Index(es):
    • Date
    • Thread