Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 25th, 2006, 11:45 PM
andy gilman
Guest
 
Posts: n/a
Default How to generate xsd file using <xsd: and not <xs:

When I generate an xsd *schema* I get something like :

<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="AccountsReceivable">
....

but I want to have the following, and don't know how to achieve it


<?xml version="1.0" encoding="utf-16"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="AccountsReceivable">
....

  #2  
Old July 26th, 2006, 05:05 PM
John Saunders
Guest
 
Posts: n/a
Default Re: How to generate xsd file using <xsd: and not <xs:

"andy gilman" <andygilman@discussions.microsoft.comwrote in message
news:AAA04007-8BDD-4C74-8BFD-BF51D580F091@microsoft.com...
Quote:
When I generate an xsd *schema* I get something like :
How are you generating it?
Quote:
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="AccountsReceivable">
...
>
but I want to have the following, and don't know how to achieve it
>
>
<?xml version="1.0" encoding="utf-16"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="AccountsReceivable">
Without knowing how you generate it, I don't know how to help you, but just
out of curiosity, why do you care what the prefix is?

John


  #3  
Old July 26th, 2006, 05:55 PM
Priya Lakshminarayanan
Guest
 
Posts: n/a
Default Re: How to generate xsd file using <xsd: and not <xs:

If you are using XmlSchema.Write to generate the schema, you can add the
"xsd" prefix to the Namespaces property (of type XmlSerializerNamespaces) on
the XmlSchema object.

Thanks,
Priya

"andy gilman" <andygilman@discussions.microsoft.comwrote in message
news:AAA04007-8BDD-4C74-8BFD-BF51D580F091@microsoft.com...
Quote:
When I generate an xsd *schema* I get something like :
>
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="AccountsReceivable">
...
>
but I want to have the following, and don't know how to achieve it
>
>
<?xml version="1.0" encoding="utf-16"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="AccountsReceivable">
...
>

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles