Re: How to work with XML data using System Events?
Re: How to work with XML data using System Events?
- Subject: Re: How to work with XML data using System Events?
- From: Emmanuel <email@hidden>
- Date: Fri, 4 Nov 2005 14:19:35 +0100
At 9:58 PM +0000 11/3/05, has wrote:
Steven D. Majewski wrote:
(1) If it's something simple, it's easier to extract stuff with a perl regex.
Important caveat: scraping XML data with regexes may be a popular
approach amongst some folks, but it is a total cowboy hack and such
solutions are very brittle and liable to break unless the XML data's
structure is fairly simple and totally predictable, and its encoding
known in advance. You'll always be far safer using a proper XML
parser or a higher-level XML processing tool such as XPath,
especially if you're not aware of all the pitfalls involved.
About using regexp over several lines of text (the basics of using
regexp to parse XML), see in the last paragraphs in man grep how
right has is.
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden