Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

XML -Need to cut and Paste specific text and create new file with specific name

XML -Need to cut and Paste specific text and create new file with specific name

XML -Need to cut and Paste specific text and create new file with specific name

I have created a document with about 500 records and need to separate them all by cutting from the first line which is:

<?xml version="1.0" encoding="utf-16"?>

to the end of a record which ends with:


then paste into a new document and name the document for example Joe Bloggs by using Joe Bloggs from this string (the name can be seen near the end)

Prompt="Enter Name" Name="Name" Type="Text" ImageIndex="-1" PDFIndex="-1" Top="140.60999999999999" Left="20.88" Bottom="127.96000000000001" Right="219.12">
<TextSpecification ShowOther="false" Leading="100" CharSapcing="0" Caps="0" TabbedMode="false" Spacing="0" Filled="true" Stroked="false" Text="Joe Bloggs" Font="0"

and go through all the records creating a separate utf16 xml file for each record

I am willing to use BBedit on the Mac using applescript or any other means available on a PC xp pro, does anyone have any ideas please?

Thank you!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close