• 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: Index to XML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Index to XML


  • Subject: Re: Index to XML
  • From: Hanaan Rosenthal <email@hidden>
  • Date: Wed, 5 Nov 2003 14:13:29 -0500
  • Organization: Custom Flow Solutions

Did you try XML Tools by LateNight Software?
Great XML parsing for AppleScript.

http://www.latenightsw.com/freeware/XMLTools2/index.html

Hanaan
>
> From: Rich Carroll <email@hidden>
> Date: 2003/11/05 Wed PM 12:52:35 EST
> To: <email@hidden>
> Subject: Index to XML
>
> Hello all,
> Has anyone seen or better yet made an Applescript to take a list of index
> entry items from a book, and generate an XML representation of it?
> Searches online have been fruitless, but this seems to me to be a simple
> request.
>
> The index would be tab delimited as follows;
> "Racing 8
> Rally 12
> European 12
> American 14
> African 15
> F1 18
> Japan 20
> European 22
> NASCAR 28
> Motorcycle 23
> Road 24
> Motocross 26
> American 27
> Japan 29
> Concours 30
> Classics 31
> Pebble Beach 32
> Milan 34
> Hotrods 36
> American 38
> Other 41
> FastFurious 42
> American 43
> Japan 45
> Shade tree 47
> New 50
> Literature 60
> Magazines 62
> Automobile 63
> Hotrod 65
> Books 67"
>
> Currently I find the primary and all child relationships in BBEdit (
> find "(([[:print:]]*|\\r|\\t)*)\\r\\w" searching in text 1) and then iterate
> through the individual lines. For example, I would find "Racing" and do
some
> voodoo, then I find "Concours" and do some more voodoo. I have a good
chunk
> of code written that spins a single line into it's XML equivalent, but the
> problem revolves around parent-child relationships.
> How do I open a XML tag for the secondary index item "Rally", spin
through
> the 3 tertiary child attributes of it, and then close the secondary "Rally"
> tag? How do I handle secondary tags or primary tags with no child
> attributes? How do I close the first primary index item after "Japan 29"?
> It's really the parent-child relationships that are complex enough to be
> causing me problems.
>
> --
> Richard McCormick-Carroll
> Application Specialist
> Capps Digital Development Group
> email@hidden
> email@hidden
> 312.220.1679 @ Desk
> 312.520.1679 @ Cell
> www.cappsdigital.com
>
> --
> Richard McCormick-Carroll
> Application Specialist
> Capps Digital Development Group
> email@hidden
> email@hidden
> 312.220.1679 @ Desk
> 312.520.1679 @ Cell
> www.cappsdigital.com
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/
listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Reading file containing UTF-8
  • Next by Date: Re: Reading file containing UTF-8
  • Previous by thread: Index to XML
  • Next by thread: How to configure OS X Network Preferences
  • Index(es):
    • Date
    • Thread