[xsd-users] Trouble getting started
    Alex Chamberlain 
    alex at alexchamberlain.co.uk
       
    Tue Jul 13 16:44:23 EDT 2010
    
    
  
Hi,
I'm having some trouble getting started. I have a schema supplied by a web
site, which includes (among others) the following root element,
	<xs:element name="ping"> 
		<xs:complexType> 
			<xs:sequence> 
				<xs:element name="code"
type="statusCodeEnum" /> 
				<xs:element name="credentialCheck"
					type="loginCredentialsStatusEnum" />
				<xs:element minOccurs="0" name="userStatus"
					type="userStatusEnum" /> 
				<xs:element minOccurs="0"
name="errorDetails"
					type="xs:string" /> 
			</xs:sequence> 
		</xs:complexType> 
	</xs:element>
I have the following code,
std::auto_ptr<ping_> p = ping(buffer);
std::cout << "Code: " << p->code() << std::endl;
I get the following error (among others),
Error: no matching function for call to ping::ping(std::istringstream&)
I used the following cmd line to generate the header files,
xsd cxx-tree --generate-serialization --generate-element-type
--generate-element-map --root-element-all schema.xsd
Why is this not working?
Thanks for your help,
Alex
    
    
More information about the xsd-users
mailing list