"Peter A. Volchek" <[EMAIL PROTECTED]> writes: > Actually the main reason I need to keep the order of attributes is > readability of the serialized document. As an example see the dump > below of what I did with Xerces' attribute order and what I > expected: > > dump 1 (Xerces' attribute ordering ) > ------------------------------------------- > <xs:sequence> > <xs:element maxOccurs="0" minOccurs="0" name="i1" type="S1"/> > <xs:element name="i2" type="S1"/> > <xs:element maxOccurs="4" minOccurs="4" name="i3" type="S1"/> > <xs:element maxOccurs="unbounded" minOccurs="0" name="i4" type="S1"/> > <xs:element maxOccurs="unbounded" name="i5" type="S1"/> > <xs:element maxOccurs="unbounded" minOccurs="4" name="i6" type="S1"/> > <xs:element maxOccurs="0" minOccurs="0" name="i7" type="S1"/> > <xs:element minOccurs="0" name="i8" type="S1"/> > <xs:element name="i9" type="S1"/> > <xs:element maxOccurs="4" name="i10" type="S1"/> > <xs:element maxOccurs="4" minOccurs="4" name="i11" type="S1"/> > <xs:element maxOccurs="10" minOccurs="4" name="i12" type="S1"/> > </xs:sequence> > </xs:complexType> > > dump 2 (Initial document or what I'm willing to get ) > ------------------------------------------------------------- > <xs:sequence> > <xs:element name="i1" type="S1" minOccurs="0" maxOccurs="0"/> > <xs:element name="i2" type="S1"/> > <xs:element name="i3" type="S1" minOccurs="4" maxOccurs="4"/> > <xs:element name="i4" type="S1" minOccurs="0" maxOccurs="unbounded"/> > <xs:element name="i5" type="S1" maxOccurs="unbounded"/> > <xs:element name="i6" type="S1" minOccurs="4" maxOccurs="unbounded"/> > <xs:element name="i7" type="S1" minOccurs="0" maxOccurs="0"/> > <xs:element name="i8" type="S1" minOccurs="0"/> > <xs:element name="i9" type="S1"/> > <xs:element name="i10" type="S1" maxOccurs="4"/> > <xs:element name="i11" type="S1" minOccurs="4" maxOccurs="4"/> > <xs:element name="i12" type="S1" minOccurs="4" maxOccurs="10"/> > </xs:sequence> > > Can you see the difference ?
Hey Peter, Yes, this makes it clear. I'm not against your suggestion, but for your needs, I think it would be simpler to write some simple post-processing program (I'm a perl programmer, so it seems easier to me...). jas. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
