all groups > sql server notification services > september 2004 >
You're in the

sql server notification services

group:

schema validation problem for FileSystemWatcher


schema validation problem for FileSystemWatcher Jason Wang
9/29/2004 1:27:02 PM
sql server notification services:
when I drop event data file to realtor, stock and weather application event
folde, the schema validation work fine. All xml data from other applications
will be rejected. However, the flight application does not reject invalid xml
file. Instead, it adds blank entry into event table. I don't see problem in
the original flight schema and my adf file. And I believe the schema
validation is genenic. If it works for one application, it should work for
Re: schema validation problem for FileSystemWatcher Joe Webb
9/29/2004 4:53:01 PM
Hi Jason -

While the Instance Config and AD Files are validated against standard
schemas, the events are validated against event schema files. Those
files will vary for each application.

For example look in the ..\Stock\AppDefinition folder and you'll find a
EventsSchema.xsd file. That file contains the schema for events coming
in through the File System Watcher.

If your XML event files are failing validation, it's because they do not
adhere to the requirements as defined by the schema.

Remember that XML documents are case-sensitive.

HTH...
Joe Webb

~~~
Get up to speed quickly with SQLNS
http://www.mannpublishing.com/Catalog/BookDetail.aspx?BookID=6




[quoted text, click to view]
Re: schema validation problem for FileSystemWatcher Jason Wang
9/30/2004 1:25:04 PM
I knew what you were talking about. What happend to me was that for flight
application, if I dropped StockEventData.xml, and EventData.xml from weather
application's, and relator event xml file I created, there were no exception
threw, the validator would not complaint, the wrong data were gone through,
and blank rows were added into event table in flight db.
Why dodn't you try and see what happend. Hope I was wrong.

[quoted text, click to view]
AddThis Social Bookmark Button