[xsd-users] How to add data to xml any type of object

Babinskas, Albert albert.babinskas at imagingsciences.com
Mon Sep 9 14:23:22 EDT 2013


Hi Boris,
Yes, I am using xs:any wildcard. 
I have reviewed 'wildcard' and 'mixed' examples in cxx/tree/ and I have further questions.
My XSD piece looks like this:  
<xs:complexType name="brandXml_t">
    <xs:sequence>
      <xs:any processContents="skip" namespace="##other"/>
    </xs:sequence>
  </xs:complexType>

It does compile, but I cannot get any_sequence, any_iterator or any to appear. I am not sure what I am doing wrong.
I did try to compare XSD with the example provided in 'wildcard' and make it identical 
(<xsd:any namespace="##targetNamespace" processContents="strict" maxOccurs="unbounded" />)
But that didn't help.


-Albert


-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: Monday, September 09, 2013 1:34 PM
To: Babinskas, Albert
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] How to add data to xml any type of object

Hi Albert,

Babinskas, Albert <albert.babinskas at imagingsciences.com> writes:

> I have an xml any type of object to which I want to add another 
> object. How would I do that?

Are you referring to XML Schema wildcards (xs:any, xs:anyAttribute)?
If so, take a look at the 'wildcard' example in the examples/cxx/tree/ directory in the XSD distribution.

Boris


Please be advised that this email may contain confidential 
information.  If you are not the intended recipient, please notify us 
by email by replying to the sender and delete this message.  The 
sender disclaims that the content of this email constitutes an offer 
to enter into, or the acceptance of, any agreement; provided that the 
foregoing does not invalidate the binding effect of any digital or 
other electronic reproduction of a manual signature that is included 
in any attachment.





More information about the xsd-users mailing list