<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"><<a href="mailto:saul@ag-projects.com">saul@ag-projects.com</a>></span><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 class="h5"><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><?xml version="1.0" encoding="utf-8"?><br>
<resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"><br><list name="0" xmlns="urn:ietf:params:xml:ns:resource-lists"><br><display-name>Friends</display-name><br>
<entry uri="1417"<br>xmlns="urn:ietf:params:xml:ns:resource-lists"><display-name>I</display-name><other><a href="http://www.blog.com/" target="_blank">http://www.blog.com</a></other></entry><br>
</list><br><list name="1" xmlns="urn:ietf:params:xml:ns:resource-lists"><br><display-name>Show Buddylist</display-name><br></list><br></resource-lists><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><?xml version="1.0" encoding="UTF-8"?><br><xcap-error<br>xmlns="urn:ietf:params:xml:ns:xcap-error"><schema-validation-error><!--<br>
<string>:5:0:ERROR:SCHEMASV:SCHEMAV_ELEMENT_CONTENT: Element<br>'{urn:ietf:params:xml:ns:resource-lists}other': This element is not<br>expected. Expected is ( ##other{urn:ietf:params:xml:ns:resource-lists}* ).<br>
--></schema-validation-error></xcap-error><br>I think this may be caused by the unsupport element, and I have read the<br>RFC4826, still don't know how to add a new element .<br></blockquote><br></div></div>
You can'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'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><br>