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.