[xsde-users] Need to set two delimiters, one before and one
after some lists
Boris Kolpackov
boris at codesynthesis.com
Sun May 15 19:30:10 EDT 2016
Hi Ravi,
Rangarajan, Ravi_Sowmian <raviraja at qti.qualcomm.com> writes:
> <xs:sequence>
> <xs:element ref="mbms2007:Cache-Control" minOccurs="0"/>
> <xs:element ref="sv:delimiter"/>
> <xs:element ref="mbms2012:Alternate-Content-Location-1" minOccurs="0" maxOccurs="unbounded"/>
> <xs:element ref="mbms2012:Alternate-Content-Location-2" minOccurs="0" maxOccurs="unbounded"/>
> <xs:element ref="sv:delimiter"/>
> [...]
> </xs:sequence>
>
> Q1. How to insert second delimiter via code synthesis tool?
Look at the generated API for the class, it will have the delimiter1()
modifiers for the second element.
> Q2. Is there a way to determine when the code synthesis tool will
> generate with tag p1 or p2 or p3 in a predictable fashion? Or is
> it arbitrarily using any of these keywords?
>
> <p1:delimiter>0</p1:delimiter>
> <p2:delimiter>0</p2:delimiter>
Yes, you can establish custom mapping for their namespace. See Chapter 8,
"Document Serializer and Error Handling" for details:
http://www.codesynthesis.com/projects/xsde/documentation/cxx/serializer/guide/index.xhtml#8
Boris
More information about the xsde-users
mailing list