Hi, I have test to add new new element for resource-lists,just as follows:
<?xml version="1.0" encoding="utf-8"?> <resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"> <list name="0" xmlns="urn:ietf:params:xml:ns:resource-lists"> <display-name>Friends</display-name> <entry uri="1417" xmlns="urn:ietf:params:xml:ns:resource-lists"><display-name>I</display-name ><other>http://www.blog.com</other></entry> </list> <list name="1" xmlns="urn:ietf:params:xml:ns:resource-lists"> <display-name>Show Buddylist</display-name> </list> </resource-lists> But there is many errors when I put the resource-lists to the OpenXCAP: debian:~/syn_showuser# xcapclient -i buddylist.ini put --account-name=1417 put http://xcap.bupt.edu/xcap-root/resource-lists/users/sip:[email protected]/index 409 Conflict content-type: application/xcap-error+xml;charset=utf-8 content-length: 369 <?xml version="1.0" encoding="UTF-8"?> <xcap-error xmlns="urn:ietf:params:xml:ns:xcap-error"><schema-validation-error><!-- <string>:5:0:ERROR:SCHEMASV:SCHEMAV_ELEMENT_CONTENT: Element '{urn:ietf:params:xml:ns:resource-lists}other': This element is not expected. Expected is ( ##other{urn:ietf:params:xml:ns:resource-lists}* ). --></schema-validation-error></xcap-error> I think this may be caused by the unsupport element, and I have read the RFC4826, still don't know how to add a new element . Thanks a lot:) CheeWii
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
