[xsd-users] cout problem with hexBinary

Andrew McDonald Andrew.McDonald at vgt.net
Tue Nov 27 14:46:43 EST 2007


I could use some help with hexBinary.


Schema file snippet:
        <xsd:element name="comPortAddress" type="xsd:hexBinary"   minOccurs="0" />

Corresponding XML config file:
	 <comPortAddress>03F8</comPortAddress>

Source code that breaks:
        std::cout << "comPortAddress: " <<  sas->comPortAddress() << "\n" ;


Compiler output:

Compiling...
codesynthesis.cpp
c:\Program Files\CodeSynthesis XSD 3.0\include\xsd\cxx\tree\containers.txx(276) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'const saswrapper_t::comPortAddress_type' (or there is no acceptable conversion)
        c:\dev\misc\test\xml\codesynthesis\codesynthesis.cpp(75) : see reference to function template instantiation 'std::basic_ostream<_Elem,_Traits> &xsd::cxx::tree::operator <<<char,saswrapper_t::comPortAddress_type,false>(std::basic_ostream<_Elem,_Traits> &,const xsd::cxx::tree::optional<X> &)' being compiled
        with
        [
            _Elem=char,
            _Traits=std::char_traits<char>,
            X=saswrapper_t::comPortAddress_type
        ]


"Zufall ist nur der Ausdruck unserer Unfähigkeit, den Dingen auf Grund zu kommen" - Albert Einstein
 




------------------------------------- Notice of Confidentiality ----------------------------------------------------------
This email and any files transmitted with it are confidential and intended solely for the use of the 
individual or entity to whom they are addressed. If you have received this email in error please notify 
postmaster at vgt.net. This message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not disseminate, distribute or 
copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by 
mistake and delete this e-mail from your system. If you are not the intended recipient you are notified 
that disclosing, copying, distributing or taking any action in reliance on the contents of this information 
is strictly prohibited. 





More information about the xsd-users mailing list