• 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
Working with XML...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Working with XML...


  • Subject: Working with XML...
  • From: Jean-Christophe Helary <email@hidden>
  • Date: Mon, 18 Dec 2017 14:05:07 +0900

It looks like System Events has problems with big XML files...

When I try

tell application "System Events"
        return XML elements of contents of XML file XMLfile
end tell

of a small xml file, I get all the info I need. When I do that on a big file
(125mb here), which is otherwise a valid XML document, I get this:

"System Events got an error: Some data was the wrong type." which highlights
"XML elements" in SD and suggests that it is expecting an item instead...

Somebody is going to tell me that the XML suite in System Events doesn't work
and I'd better use [asobjc|satimage's xmllib|something else] but before I move
forward with other tools I'd like to confirm the above issue...

Thank you in advance.

Jean-Christophe Helary
-----------------------------------------------
@brandelune http://mac4translators.blogspot.com


 _______________________________________________
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: Working with XML...
      • From: Takaaki Naganoya <email@hidden>
  • Prev by Date: Re: [EXTERNAL] Mail Archive
  • Next by Date: Re: [applescript] Working with XML...
  • Previous by thread: Re: [EXTERNAL] Mail Archive
  • Next by thread: Re: Working with XML...
  • Index(es):
    • Date
    • Thread