Hi
I need to integrate to a system that has XML like this:
<Calls xmlns="\\SomeMachine\Share\Schemas\Calls1_2.dtd" Version="1.2">
<Call>
<CallRef>Call1</CallRef>
<UserRef>286</UserRef>
<Details>
<Condition>EDITTABLE</Condition>
<CallType>Water Damage</CallType>
<Select0>Water Damage</Select0>
<Select1>386 Kentmore Road</Select1>
<Select2>DE56 1UU</Select2>
<Select3>Fairly Urgent</Select3>
</Details>
<Defaults>
</Defaults>
<Panels>
</Panels>
<Files>
</Files>
</Call>
</Calls>
Basically, they use the xmlns to point to the exact DTD used to parse
the element. The Calls element is actually nested inside other
elements that point to other DTD's in the same way.
Isn't this the wrong way to use the xmlns attribute? I mean, as I see
it, there are two valid options:
1. Use the DOCTYPE to point to DTD's inside the XML
2. Use the xmlns attribute to define the namespace (as declared in an
XSD) the lement must conform to.
Any thoughts? I would like to ask the company that has the other
program to change there ways of doing things, but need to make sure
that the current way they do it isn't valid.
Thanks!
--
eliasen