Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

Status
Not open for further replies.

Buscardman

IS-IT--Management
May 20, 2012
1
GB
Hi,
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:

</PDFDocument>

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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top