Find Jobs
Hire Freelancers

XML Processing: xmlstarlet expression to find entries in one file and copy it to another

$10-30 AUD

Completed
Posted over 5 years ago

$10-30 AUD

Paid on delivery
I need a shell script to do some XML processing, using xmlstarlet. I have 2 xml files. I need to copy some elements from one file to the other. Both files are the same kind. I want to find the following in [login to view URL]: Under <glyf>, find this entire element: <TTGlyph name="{0}" [... other attributes] > [... content] </TTGlyph> Where {0} would be a list of strings to iterate a search for each string. And then copy and replace in [login to view URL] where the same element occurs. Then repeat the same operation under <gvar>: <glyphVariations glyph="{0}"> [… content] </glyphVariations>
Project ID: 18119070

About the project

1 proposal
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi. As I understand, you would like a bash shell script that will replace some of the TTGlyph and glyphVariations in [login to view URL] with the versions in [login to view URL] with the same name, and xmlstarlet (xml) is an acceptable command to use. To make this replacement, I can deliver a bash shell script using an xsl transform. The script would take three parameters: the [login to view URL], the [login to view URL], and (optionally) a string containing a subset of the glyph names separated by commas with no spaces. (If the glyph names are not specified, then all glyphs that are in both [login to view URL] and [login to view URL] will be replaced.) The output will write to "[login to view URL]" if the first parameter is "[login to view URL]". Have I understood correctly? Does this sound acceptable? Please let me know if you need changes.
$35 AUD in 1 day
5.0 (15 reviews)
4.8
4.8

About the client

Flag of AUSTRALIA
Waterways, Australia
5.0
1
Payment method verified
Member since Nov 8, 2018

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.