[xsd-users] xsd:any nodes not printed out
Oliver.Kowalke at infineon.com
Oliver.Kowalke at infineon.com
Mon Apr 10 03:51:40 EDT 2006
Hello,
nodes of type xsd:any are not printed out?!
std::string as_string( abc::a_type const& n)
{
xml_schema::namespace_infomap map;
map[""].name = "abc";
map[""].schema = "hello.xsd";
std::stringstream ss;
abc::a( ss, n, map);
return ss.str();
}
XMLCh tempStr[100];
xercesc::XMLString::transcode("LS", tempStr, 99);
xercesc::DOMImplementation * impl =
xercesc::DOMImplementationRegistry::getDOMImplementation( tempStr);
xercesc::DOMWriter * w = ( ( xercesc::DOMImplementationLS *
)impl)->createDOMWriter();
abc::a_type a_n(
* abc::a(
path_,
xml_schema::flags::keep_dom |
xml_schema::flags::dont_initialize) );
std::cout << as_string( a_n) << std::endl; // I'm missing 'test' and
'<embed xmlns="xyz"><t>some text</t></embed'
with regards,
Oliver
<<hello.xml>> <<hello.xsd>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello.xml
Type: text/xml
Size: 266 bytes
Desc: hello.xml
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20060410/2253bd59/hello.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello.xsd
Type: application/octet-stream
Size: 714 bytes
Desc: hello.xsd
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20060410/2253bd59/hello.obj
More information about the xsd-users
mailing list