Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

187
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda