Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

188
Views
Read xml from jdf file using javascript

Please help me how to read some values from jdf file? I have some jdf files, and I need to read "value" for name="Job".

this is example of jdf file

<?xml version="1.0" encoding="UTF-8"?>
<JDF xmlns="http://www.CIP4.org/JDFSchema_1_1" xmlns:eg="http://www.esko-graphics.com/EGSchema1_0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Product">
<eg:SmartName Name="Job" Value="Poland_001"/>
<eg:SmartName Name="Barcode" Value="Yes"/>
<eg:SmartName Name="Separation" Value="CMYK"/>
<eg:SmartName Name="Paper_grade" Value="300g"/>
<eg:SmartName Name="Template" Value="Template_box"/>
</JDF>
// this is something i tried, but it s not working
var XMLfile = new File("/Users/rsmilevicm/Documents/test.jdf");
XMLfile.open('r');
var str = "";
str = XMLfile.read();
XMLfile.close();
var xml = new XML(str);
default xml namespace = "http://www.esko-graphics.com/EGSchema1_0";
var job_name = xml.data.(@Name == 'Job').@value;
alert(job_name)
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!