Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to make an xml schema for some specific needs, the thing that I'm not sure how to handle is that I want to be able to have own custom attributes (or something) in the xsd-schema itself.

Something like this is what I want:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <xsd:element name="Book">
      <xsd:complextype>
         <xsd:sequence>
            <xsd:element name="Author" type="xsd:string" display="true" owner="Mich" />
            <xsd:element name="Pages" type="xsd:int" />
         </xsd:sequence>
      </xsd:complextype>
   </xsd:element>
</xsd:schema>


Is there a way to store this kind of information (display="true" owner="Mich") in the schema using c#?
Posted
Comments
Menon Santosh 2-Nov-11 9:19am    
Use some tool like altova
http://www.altova.com/xml-editor/
you can easly create such xsd

1 solution

This seems a lot like your other question.
Programmatically (c#) create xml schema[^]

Please don't repost.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900