aerhard / linter-autocomplete-jing

Jing-based autocomplete and validation of XML documents in Atom
https://atom.io/packages/linter-autocomplete-jing
MIT License
19 stars 3 forks source link

Why this error ? How can you validate against dtd or XSD file ?? #59

Open ejgutierrez74 opened 5 years ago

ejgutierrez74 commented 5 years ago

Could not process schema or catalog: exception "com.thaiopensource.resolver.ResolverException" thrown: java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\Users\Eduardo Gutierrez\Desktop\Correcciones\M4 UF1 RA2RA3 �?? Practica EAF4\Practica4\Exercici4.xml

XML file: `<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE cartelera SYSTEM "Exercici4.dtd">

AQUELLAS JUERGAS UNIVERSITARIAS Old School Estados Unidos Comedia Mitch, Frank y Beanie son tres amigos treintañeros cuyas vidas no son exactamente lo que esperaban. Mitch tiene una novia ninfómana que se mete en la cama con el primero que agarra. Frank se ha casado y su matrimonio nada tiene que ver con las juergas salvajes que organizaban años atrás. Y Beanie es un padre de familia que se muere por recuperar su alocada juventud. Pero las cosas cambian cuando Beanie sugiere que creen su propia fraternidad, en la nueva casa que Mitch tiene junto al campus de la universidad. Una ocasión para revivir tiempos gloriosos, hacer nuevos amigos y de volver a sus viejas, salvajes y desmadradas juergas de estudiantes. Todd Philips Luke Wilson Will Farrel Vince Vaughn http://www.uip.es caratulas/Aquellas juergas.jpg EL ORO DE MOSCÚ España España España Comedia Por una extraña coincidencia del destino, alguien recibe una información extraconfidencial de un anciano en sus últimos segundos de vida: el secreto mejor guardado de la Historia. El receptor, un trabajador de hospital, se lo comunica secretamente a un supuesto amigo. Ambos inician una aventura rocambolesca y llena de misterio. Ante la inutilidad de sus intentos y muy a su pesar, tienen que recurrir a otras personas que así mismo van cayendo en el pozo sin fondo que conlleva descifrar el enigma. Jesús Bonilla Jesús Bonilla Santiago Segura Alfredo Landa Concha Velasco Antonio Resines Gabino Diego, María Barranco María Barranco

` DTD file:

<!ELEMENT cartelera (película+)>
        <!ATTLIST película código ID #REQUIRED>
        <!ATTLIST película duración CDATA #REQUIRED>
        <!ATTLIST película año CDATA "2003">
        <!ELEMENT película (título,título_original?,nacionalidad,género,(clasificación | sin_clasificar),sinopsis,director,reparto,web*,cartel?)>
              <!ELEMENT título (#PCDATA)>
              <!ELEMENT título_original (#PCDATA)>
              <!ELEMENT nacionalidad (#PCDATA)>
              <!ELEMENT género (#PCDATA)>
              <!ATTLIST clasificación edad CDATA #IMPLIED>
              <!ELEMENT clasificación (#PCDATA)>
              <!ELEMENT sin_clasificar EMPTY>
              <!ELEMENT sinopsis (#PCDATA)>
              <!ELEMENT director (#PCDATA)>
              <!ELEMENT reparto (actor+)>
              <!ELEMENT actor (#PCDATA)>
              <!ELEMENT web (#PCDATA)>
              <!ELEMENT cartel (#PCDATA)>

Thanks

aerhard commented 5 years ago

It looks like something went wrong converting the file path into a URI, possibly due to the non-ASCII / space characters in the directory name M4 UF1 RA2RA3 �?? Practica EAF4. I'll look deeper into it -- as a workaround, you can probably avoid this error by renaming the directory (for example as M4_UF1_RA2RA3_Practica_EAF4).

ejgutierrez74 commented 5 years ago

Id take a look this afternoon How about validating against dtd file or xsd file like xml copy editor ? How can i do that ?

aerhard commented 5 years ago

I'm not familiar with that program. What is the functionality that you have in mind?

ejgutierrez74 commented 5 years ago

You can download it an take a look, the idea is you have an students.xml and student-validate.dtd.. and with a button you can validate against that file, if its correct or gives errrors..

I dont know if with your plugin you can do it i dont think so...

The same with schemas: you can validate the xml file agains a student-validat.xsd file....

Thanks for your help...