<div>Dear Saúl Ibarra Corretgé,</div>
<div>        I have test to modify /usr/lib/pymodules/python2.5/xcap/xml-schemas/resource-lists.xsd in my OpenXCAP,and add additional tag successfully:)</div>
<div>        Thanks a lot~</div>
<div> </div>
<div>CheeWii<br><br></div>
<div class="gmail_quote">2011/1/5 CheeWii <span dir="ltr">&lt;<a href="mailto:quanwei87@gmail.com">quanwei87@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Dear Saúl Ibarra Corretgé,</div>
<div> </div>
<div>      In earlier time,I just test to use OpenXCAP server. OpenXCAP is real functional software. And now I want to make some development based on OpenXCAP,such as add many additional tag for every buddy.</div>
<div> </div>
<div>      I have learned what you said. Howerver,I still have three questions:</div>
<div>      Is  The  XML schema modified by myself as I like?</div>
<div>      Which directory does The  XML schema locate in my OpenXCAP?</div>
<div>      Is there any reference of how to modify my XML schema?<br></div>
<div>Thank you very much:)</div>
<div> </div>
<div>CheeWii<br></div>
<div class="gmail_quote">2011/1/4 Saúl Ibarra Corretgé <span dir="ltr">&lt;<a href="mailto:saul@ag-projects.com" target="_blank">saul@ag-projects.com</a>&gt;</span> 
<div>
<div></div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi, 
<div>
<div></div>
<div><br><br>On 4/1/11 10:42 AM, CheeWii wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br>I have test to add new new element for resource-lists,just as follows:<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>
&lt;resource-lists xmlns=&quot;urn:ietf:params:xml:ns:resource-lists&quot;&gt;<br>&lt;list name=&quot;0&quot; xmlns=&quot;urn:ietf:params:xml:ns:resource-lists&quot;&gt;<br>&lt;display-name&gt;Friends&lt;/display-name&gt;<br>
&lt;entry uri=&quot;1417&quot;<br>xmlns=&quot;urn:ietf:params:xml:ns:resource-lists&quot;&gt;&lt;display-name&gt;I&lt;/display-name&gt;&lt;other&gt;<a href="http://www.blog.com/" target="_blank">http://www.blog.com</a>&lt;/other&gt;&lt;/entry&gt;<br>
&lt;/list&gt;<br>&lt;list name=&quot;1&quot; xmlns=&quot;urn:ietf:params:xml:ns:resource-lists&quot;&gt;<br>&lt;display-name&gt;Show Buddylist&lt;/display-name&gt;<br>&lt;/list&gt;<br>&lt;/resource-lists&gt;<br>But there is many errors when I put the resource-lists to the OpenXCAP:<br>
debian:~/syn_showuser# xcapclient -i buddylist.ini put --account-name=1417<br>put<br><a href="http://xcap.bupt.edu/xcap-root/resource-lists/users/sip:1417@sip6.edu.cn/index" target="_blank">http://xcap.bupt.edu/xcap-root/resource-lists/users/sip:1417@sip6.edu.cn/index</a><br>
409 Conflict<br>content-type: application/xcap-error+xml;charset=utf-8<br>content-length: 369<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;xcap-error<br>xmlns=&quot;urn:ietf:params:xml:ns:xcap-error&quot;&gt;&lt;schema-validation-error&gt;&lt;!--<br>
&lt;string&gt;:5:0:ERROR:SCHEMASV:SCHEMAV_ELEMENT_CONTENT: Element<br>&#39;{urn:ietf:params:xml:ns:resource-lists}other&#39;: This element is not<br>expected. Expected is ( ##other{urn:ietf:params:xml:ns:resource-lists}* ).<br>
--&gt;&lt;/schema-validation-error&gt;&lt;/xcap-error&gt;<br>I think this may be caused by the unsupport element, and I have read the<br>RFC4826, still don&#39;t know how to add a new element .<br></blockquote><br></div></div>
You can&#39;t just add an element wherever you want :-) You need to check the XML schema and see if the element supports extensions, and if it does, then you can add whatever you want but you&#39;ll need to define a custom namespace for the elements you added.<br>
<font color="#888888"><br>-- <br>Saúl Ibarra Corretgé<br>AG Projects<br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></font></blockquote></div></div></div><br></blockquote></div><br>