Suggestion for Java programmers: use tools to generate classes from .xsd files, e.g. JAXB or XMLBeans.

Resulting XML contents are always valid ;-)


Il 20/10/2022 13:52, Marc Blanchet ha scritto:
A suggestion to get the final word and to reply to your registrar:  Use an XML 
schema checker, feed it with the schema and the XML message you receive and 
then look at the result of the parsing: it would tell you if the xml source is 
valid against the schema. An example of such tool is xmllint —schema 
$schemafile  $inputFile . Xmllint is pretty available in any distribution.

Marc.

Le 20 oct. 2022 à 06:06, Stephane Bortzmeyer <bortzme...@nic.fr> a écrit :

We got a message from a registrar saying that having several commands
under an <epp> element is legal:

<epp>
  <command>
    <create>
       ...
    </create>
    <update>
       ...

and that "it works with all the other registries".

XML schema is difficult to read but RFC 5730, section 2.5 uses the
singular to talk about the command. So, my opinoion is that the
registrar is wrong. Advices?

_______________________________________________
regext mailing list
regext@ietf.org
https://www.ietf.org/mailman/listinfo/regext
_______________________________________________
regext mailing list
regext@ietf.org
https://www.ietf.org/mailman/listinfo/regext

--
Dr. Mario Loffredo
Technological Unit “Digital Innovation”
Institute of Informatics and Telematics (IIT)
National Research Council (CNR)
via G. Moruzzi 1, I-56124 PISA, Italy
Phone: +39.0503153497
Web: http://www.iit.cnr.it/mario.loffredo

_______________________________________________
regext mailing list
regext@ietf.org
https://www.ietf.org/mailman/listinfo/regext

Reply via email to