=?iso-8859-1?q?Fran=E7ois_Beretti?=
Usenet Archive
- Joined
- May 18, 2007
- Messages
- 1
- Reaction score
- 0
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> <dsml
bject-identifier>1.2.3.4.5.6.7.8.9</dsml
bject-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> <dsml
bject-identifier>1.2.3.4.5.6.7.8.9</dsml
bject-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> <dsml
And I need more information, like :
<dsml:attribute-type
id="myAttribute">
<dsml:name>myAttribute</dsml:name>
<dsml:description>Some description</dsml:description> <dsml
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