[xsd-users] Re: Substitution groups & different namespaces.

Boris Kolpackov boris at codesynthesis.com
Thu Dec 14 07:26:47 EST 2006


Hi David,

Moss, David R (SELEX Comms) (UK Christchurch) <david.r.moss at selex-comm.com> writes:

> You're right - that is what I meant. Your example needs the line
> xsi:noNamespaceSchemaLocation="derived-user-config.xsd" as well though?

Correct.


> Again, with the line
> xsi:noNamespaceSchemaLocation="derived-user-config.xsd" this works fine.

Right.


> const DerivedUserConfig_t* pd =
>                          dynamic_cast<const DerivedUserConfig_t*>(&*i);
>
> // This has expected output
> // 50
> cerr << pd->Age();
>
> // This has unexpected output
> // 0x004eeac0
> // Expected (or similar):
> //  Name: fred
> //  Number: 6666666
> //  Age: 50
> cerr << pd;

I think you need to dereference the pointer:

cerr << *pd;


hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20061214/7337274f/attachment.pgp


More information about the xsd-users mailing list