[xsd-users] comparison question
Rizzuto, Raymond
Raymond.Rizzuto at sig.com
Wed Jul 2 15:00:54 EDT 2008
Boris,
I'm using the --generate-ostream option so I can print the objects I
generate.
Here is the XML for an object that I create in memory:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<message xmlns="http://sig.com/sdmp/messages" version="1.2">
<header source="hi">
<containerId source="SusexToSDMP">message-1</containerId>
</header>
<newRequest>
<request changed="state of the union" communicationMethod="Manual"
sentDateTime="2008-07-02T14:49:47.517-04:00" state="Discarded">
<id revision="3" source="SusexToSDMP">request-1</id>
</request>
</newRequest>
</message>
When I print it, this is what I get:
header:
containerId: message-1
source: SusexToSDMP
source: hi
messageType:
version: 1.2
It looks like messageType is only printing the base class data, not the
data in the derived newRequest class. I'm guessing this is the same
issue as the comparison operator.
Ray
-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: Tuesday, July 01, 2008 9:37 AM
To: Rizzuto, Raymond
Cc: Boris Kolpackov
Subject: Re: [xsd-users] comparison question
Hi Ray,
Rizzuto, Raymond <Raymond.Rizzuto at sig.com> writes:
> Your approach sounds like it would work also. And it sound like it
may
> be simpler than the derived class idea. Is that something that might
> make the next release? I'd be glad to try it out.
Yes, I think we will implement it for the next release. Give me a
couple of days and I will try to implement it and build you a pre-
release binary to try.
Boris
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