473,509 Members | 2,575 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Publishing an XSD

Hello:

I have defined an XSD that is used by one of my libraries. I have an
XML format that defines the mapping between database objects and
classes inside the application. I have moved the code for performing
the mapping into a separate library.

I have a class that can take a xml stream and cache the mappings.
However, that code is just as good as worthless unless I can validate
the XML. So, I have a cute little XSD. Now, when others use my
library, how do I access my schema? Do I make the schema a resource in
my library?

I obviously don't want to make the schema editable by others, so I
can't copy it to the output directory. I am just curious how others
would deal with the situation.

Thanks,
Travis
Aug 5 '08 #1
3 1192
je**********@gmail.com wrote:
I have a class that can take a xml stream and cache the mappings.
However, that code is just as good as worthless unless I can validate
the XML. So, I have a cute little XSD. Now, when others use my
library, how do I access my schema? Do I make the schema a resource in
my library?
That is certainly one option.
I obviously don't want to make the schema editable by others, so I
can't copy it to the output directory. I am just curious how others
would deal with the situation.
Another option is to publish the schema on a web server but then the
validation code needs access to the web to load the schema.
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Aug 5 '08 #2
On Aug 5, 9:06*pm, "jehugalea...@gmail.com" <jehugalea...@gmail.com>
wrote:
I have a class that can take a xml stream and cache the mappings.
However, that code is just as good as worthless unless I can validate
the XML. So, I have a cute little XSD. Now, when others use my
library, how do I access my schema? Do I make the schema a resource in
my library?

I obviously don't want to make the schema editable by others
Why not? As long as it is included with your software - even as an
embedded resource - a determined user can still edit it.

But yes, in general, if you want it to be slightly more protected than
a plain XSD file, and to avoid the need to copy it around together
with the assembly, you can just embed it as a resource, and load it
directly from there as usual.
Aug 5 '08 #3
On Aug 5, 11:14*am, Martin Honnen <mahotr...@yahoo.dewrote:
jehugalea...@gmail.com wrote:
I have a class that can take a xml stream and cache the mappings.
However, that code is just as good as worthless unless I can validate
the XML. So, I have a cute little XSD. Now, when others use my
library, how do I access my schema? Do I make the schema a resource in
my library?

That is certainly one option.
I obviously don't want to make the schema editable by others, so I
can't copy it to the output directory. I am just curious how others
would deal with the situation.

Another option is to publish the schema on a web server but then the
validation code needs access to the web to load the schema.

--

* * * * Martin Honnen --- MVP XML
* * * *http://JavaScript.FAQTs.com/
I realized that schemas are usually hosted. I don't think I want to
make my library web-enabled. I am developing a small open source
project. I would have to host the schema so anyone in the world could
get it. I don't want to force them to have an internet connection for
something that isn't otherwise web-related. But without a schema they
can put in their markup, they can't use tools that would give them
intellisense. I don't know . . .

I'm almost thinking that I should have two copies. One that is a
resource and the other that is more for documentation. I just worry
that if I decide to extend the schema, I will have to modify my
library. But since they are tightly related, I can't think why I would
edit the schema and NOT edit the library anyway. Now I'm rambling.
Aug 5 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1864
by: MarionEll | last post by:
XML 2003 to Highlight Key Publishing Trend: XSL-FO Tools XSL-FO “Chef’s Tools Exhibition” Slated for 7 p.m. Dec. 10; Premier XML Industry Event Runs Dec. 7-12 in Philadelphia Alexandria,...
0
1228
by: vidya | last post by:
Hi, How can program publishing wizard that can automate publishing of my web pages thru c# or VB.Net. I wanted to use the Microsoft Web Publishing Wizard APIs in dot net. Can anyone help me on...
6
2000
by: Doc | last post by:
I'm trying to get to the bottom of a problem I've been having with publishing a freebie website. I'm using a program called WebEasy. Using a very simple site upload as an example, in this case a...
0
1288
by: tiendq | last post by:
Hi, My web application using a Http handler to handle request for *.aspx page in a specific folder e.g. /Articles , which generate requested page dynamically. It worked well. But when I...
2
1488
by: Dustin Davis | last post by:
This is my first attempt at using ClickOnce. It seems it is publishing OK, but I can't run the install. If I use IE, I just see XML in the web browser. If I use Firefox, I download a setup file,...
2
1337
by: Elmo Watson | last post by:
Since I came from the HTML world many years ago - I am just in the habit of copying/FTPing all my ASP.Net websites to the remote server However, I have a friend who says that Publishing is the...
1
1438
by: thavaht | last post by:
I recently began drawing dynamic pages using PHP + MYSQL. Im developing the site on windows XP / Apache 1.3.34 / PHP 5.1.2 as a testing server. My publishing server is on another machine on the...
2
6345
by: Max2006 | last post by:
Hi, After I right-click on my web application project file and choose "Publish ." and do the publishing, the result publishable files does not include the *.ashx files. Is it by design? How...
7
12287
ADezii
by: ADezii | last post by:
There are essentially three techniques for publishing Access Data on the Web. The first technique is static, and does not allow for the dynamic addition or modification to the data, There is no...
0
2127
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi all, I have a publishing Click Once of my application. Now I want create new version of my application for modify some files, like app.config.
0
7135
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7342
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7067
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5650
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
3215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
440
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.