EDN Admin
Well-known member
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri I have to create hundreds of XML files, for each of the XML file there is one XSD schema. We use .Net entity framework to get the data from the database.
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri Is there any way to define the mapping in XSD itself from where the data will be coming from at run time.
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri For example following is sample XSD. How do I define from where the actual FirstName value is coming from. There is something xs:Entity Type what is it?
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri An artical on how to use it will be appriciated
<span style="font-size:small <span style="font-family:Calibri
<div style="background-color:white; color:black
<pre><span style="color:blue <?<span style="color:#a31515 xml <span style="color:red version<span style="color:blue =<span style="color:black "<span style="color:blue 1.0<span style="color:black " <span style="color:red encoding<span style="color:blue =<span style="color:black "<span style="color:blue utf-8<span style="color:black "<span style="color:blue ?>
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 schema <span style="color:red attributeFormDefault<span style="color:blue =<span style="color:black "<span style="color:blue unqualified<span style="color:black " <span style="color:red elementFormDefault<span style="color:blue =<span style="color:black "<span style="color:blue qualified<span style="color:black " <span style="color:red xmlns:xs<span style="color:blue =<span style="color:black "<span style="color:blue http://www.w3.org/2001/XMLSchema<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue Person<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue FirstName<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue xs:string<span style="color:black " <span style="color:blue />
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue LastName<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue xs:ENTITY <span style="color:black "<span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 schema<span style="color:blue >
[/code]
<br/>
View the full article
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri Is there any way to define the mapping in XSD itself from where the data will be coming from at run time.
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri For example following is sample XSD. How do I define from where the actual FirstName value is coming from. There is something xs:Entity Type what is it?
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri An artical on how to use it will be appriciated
<span style="font-size:small <span style="font-family:Calibri
<div style="background-color:white; color:black
<pre><span style="color:blue <?<span style="color:#a31515 xml <span style="color:red version<span style="color:blue =<span style="color:black "<span style="color:blue 1.0<span style="color:black " <span style="color:red encoding<span style="color:blue =<span style="color:black "<span style="color:blue utf-8<span style="color:black "<span style="color:blue ?>
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 schema <span style="color:red attributeFormDefault<span style="color:blue =<span style="color:black "<span style="color:blue unqualified<span style="color:black " <span style="color:red elementFormDefault<span style="color:blue =<span style="color:black "<span style="color:blue qualified<span style="color:black " <span style="color:red xmlns:xs<span style="color:blue =<span style="color:black "<span style="color:blue http://www.w3.org/2001/XMLSchema<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue Person<span style="color:black "<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue FirstName<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue xs:string<span style="color:black " <span style="color:blue />
<span style="color:blue <<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element <span style="color:red name<span style="color:blue =<span style="color:black "<span style="color:blue LastName<span style="color:black " <span style="color:red type<span style="color:blue =<span style="color:black "<span style="color:blue xs:ENTITY <span style="color:black "<span style="color:blue />
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 sequence<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 complexType<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 element<span style="color:blue >
<span style="color:blue </<span style="color:#a31515 xs<span style="color:blue :<span style="color:#a31515 schema<span style="color:blue >
[/code]
<br/>
View the full article