Dear all,

Let me introduce a question to the list. Your help will be greatly appreciated!

XML documents that are managed via XCAP means typically fall into a well-known XCAP Application Usage. Typically, each XCAP Application Usage may declare a default XML namespace. XML documents within such application may or may not include declaration of the default namespace. In case the default namespace declaration is not present in the doc, the XML parser should assume that elements defined in the well-known default namespace may be present anyway.

I hope I am right till now, but please correct me if I'm wrong :-)

Now, question is the following: what if an XML document within a certain AUID contains XML elements declared under a namespace that is different from the default one? Is it correct -from the XCAP perspective- not to declare non-default (and used) namespace in the XML doc?

My assumption is that from the XML perspective it is not strictly incorrect not to declare non-default namespaces, bun if two independent XCAP implementations are intending to exchange XML content, and let the remote endpoint understand such content, THEN all namespaces must be declared. Otherwise, an element belonging to an unknown namespace would systematically be ignored by the remote endpoint.

Furthermore, if someone is aware that all non-default namespaces used in the XML document within the XCAP context MUST be declared, please let me know about that...

Any help will be appreciated!

Kind Regards,

David
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to