"Jonas B. Nielsen" <jonasbn_at_dk-hostmaster.dk> writes:
> I just saw your response this morning. This is what I have now after a
> lot of iterations:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
> <command>
> <create>
> <host:create xmlns:host="urn:ietf:params:xml:ns:host-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd">
> <host:name>ns2.eriktester.dk</host:name>
> <host:addr ip="v4">127.0.0.1</host:addr>
> <host:addr ip="v6">0:0:0:0:0:0:0:1</host:addr>
> </host:create>
> </create>
> <extension>
> <dkhm-host:create xmlns:dkhm-host="urn:dkhm:params:xml:ns:dkhm-host-1.0">
> <dkhm-host:contact>TEST1234-DK</dkhm-host:contact>
> </dkhm-host:create>
> </extension>
> <clTRID>c432e18f0f595b76bdac6672c355e0db</clTRID>
> </command>
> </epp>
Why does the <dkhm-host:create> element exist? What semantic purpose
does it serve? The whole command is already an epp:create/host:create
command, so this should be simpler:
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<create>
<create xmlns="urn:ietf:params:xml:ns:host-1.0">
<name>ns2.eriktester.dk</name>
<addr ip="v4">127.0.0.1</addr>
<addr ip="v6">0:0:0:0:0:0:0:1</addr>
</create>
</create>
<extension>
<contact xmlns="urn:dkhm:params:xml:ns:dkhm-host-1.0">TEST1234-DK</contact>
</extension>
<clTRID>c432e18f0f595b76bdac6672c355e0db</clTRID>
</command>
</epp>
Also, why is the <contact> element in a "...dkhm-host..." namespace? A
DK contact is a DK contact; a namespace of
"urn:dkhm:params:xml:ns:dkhm-1.0" would make more sense to me. It's not
like we foresee that we might have other meanings of "contact" within
the DK registry. (What's next, a separate <contact
xmlns="urn:dkhm:params:xml:ns:dkhm-domain-1.0"> element?)
XML is complex enough; we must, every step of the way, strive for
simplicity.
/Teddy Hogeborn
--
System Administrator at Nordisk Media Utveckling AB
https://www.nmugroup.com/ tel:+46.40304770
Received on Fri Nov 02 2012 - 10:47:50 CET