[xsd-users] (no subject)
Rizzuto, Raymond
Raymond.Rizzuto at sig.com
Wed Oct 1 17:11:07 EDT 2008
I'm getting an exception on parsing a message using cxx-tree. The code I have is:
try
{
// parse the message back in and print it
xml_schema::properties props;
props.schema_location("http://sig.com/sdmp/messages", "SDMP.xsd");
std::auto_ptr<message> m1 = parse_message(sdmpMessage, xml_schema::flags::dont_initialize, props);
.
.
.
delete m1;
}
catch (const xml_schema::exception& e)
{
std::cerr << e << endl;
}
The error message displayed via the catch block is: ":11:196 error: This type of attribute cannot have an empty value" Is there any way to get more detail from the exception, such as the name of the attribute? I figured that :11:196 was the line and column, and was able to figure what the issue was, but the name would have been quicker.
Ray
________________________________
Ray Rizzuto
raymond.rizzuto at sig.com
Susquehanna International Group
(610)747-2336 (W)
(215)776-3780 (C)
________________________________
IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.
More information about the xsd-users
mailing list