?
=?iso-8859-1?q?Fran=E7ois_Beretti?=
Hi,
I want to design an XML format for my application. Documents using
this format will describe LDAP classes and attributes. I have found
the DSML format ( http://xml.coverpages.org/dsmlv1.html ) which does a
part of what I want.
But I want to add some information to it. For example, with DSML I can
write :
<dsml:attribute-type
id="myAttribute">
<dsml:name>myAttribute</dsml:name>
<dsml:description>Some description</dsml:description>
<dsmlbject-identifier>1.2.3.4.5.6.7.8.9</dsmlbject-identifier>
</dsml:attribute-type>
And I need more information, like :
<dsml:attribute-type
id="myAttribute">
<dsml:name>myAttribute</dsml:name>
<dsml:description>Some description</dsml:description>
<dsmlbject-identifier>1.2.3.4.5.6.7.8.9</dsmlbject-identifier>
<schema-guid>{4f56d89ed-4578-32c9-456e-4879cf3641ab}</schema-guid>
<indexed>true</indexed>
</dsml:attribute-type>
What are the best practices to extend an existing XML format ? If I
add some elements, will the document still respect the original
schema ?
DSML use xmlns:dsml="http://www.dsml.org/DSML" (don't try this uri, it
is broken)
if I write my namespace, can I refer to the DSML namespace ? Same
question for a XML Schema.
I read the XML docs but did not understand everything. I searched the
web without success. If there are some examples you can just show me.
Thank you very much
François
I want to design an XML format for my application. Documents using
this format will describe LDAP classes and attributes. I have found
the DSML format ( http://xml.coverpages.org/dsmlv1.html ) which does a
part of what I want.
But I want to add some information to it. For example, with DSML I can
write :
<dsml:attribute-type
id="myAttribute">
<dsml:name>myAttribute</dsml:name>
<dsml:description>Some description</dsml:description>
<dsmlbject-identifier>1.2.3.4.5.6.7.8.9</dsmlbject-identifier>
</dsml:attribute-type>
And I need more information, like :
<dsml:attribute-type
id="myAttribute">
<dsml:name>myAttribute</dsml:name>
<dsml:description>Some description</dsml:description>
<dsmlbject-identifier>1.2.3.4.5.6.7.8.9</dsmlbject-identifier>
<schema-guid>{4f56d89ed-4578-32c9-456e-4879cf3641ab}</schema-guid>
<indexed>true</indexed>
</dsml:attribute-type>
What are the best practices to extend an existing XML format ? If I
add some elements, will the document still respect the original
schema ?
DSML use xmlns:dsml="http://www.dsml.org/DSML" (don't try this uri, it
is broken)
if I write my namespace, can I refer to the DSML namespace ? Same
question for a XML Schema.
I read the XML docs but did not understand everything. I searched the
web without success. If there are some examples you can just show me.
Thank you very much
François