[xsd-users] namespace mapping

Rizzuto, Raymond Raymond.Rizzuto at sig.com
Wed Jun 25 13:13:31 EDT 2008


Boris,

I agree that the user should be able to specify a prefix if they want,
but it would be nice if that was an option.  I.e. it would be nice if I
could just call the serialize function with the output stream and the
object to serialize.

Ray

-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: Wednesday, June 25, 2008 8:37 AM
To: Rizzuto, Raymond
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] namespace mapping

Hi Ray,

Rizzuto, Raymond <Raymond.Rizzuto at sig.com> writes:

> The fact that XSD insulates me from needing to know the details of
> serialization is a double edged sword.  Is it possible that XSD could
> choose unique prefixes for the namespaces in the document?

No at the moment but we may add this functionality in the future.
Generally, people prefer to assign meaningful prefixes to their
namespaces instead of something like p1, p2, etc.


> Anyway, for now, I have made changes that seem to work.  If I
understand
> correctly, I can use an empty prefix with a namespace of
> "http://sig.com/sdmp/messages".

Yes, you can make http://sig.com/sdmp/messages the default namespace
(i.e., empty prefix) as long as you have all elements in your
vocabulary qualified (elementFormDefault="qualified").


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