Validating XML message...
We have to validate inbound XML messages before
processing them. The guys on the other side are
following XMLSchema recommendations to create their
messages using xsd file for validation. We plan to use
XMLParser Forte library and as far as I know it
validates against dtd file (haven't tried yet). If
this is true we have two options:
1. Find a program to convert xsd into dtd file and use
Forte XMLParser for validation.
2. Validate the message beforehand with an external
tool. That means integration between Forte and this
tool.
I would appreciate any help with either approach. Do
you know of a program doing xsd into dtd? Have you
used any existing tool on the market to validate using
XMLSchema? Or may be there is another solution to
this?
Thank you in advance,
Rumen
=====
Rumen Georgiev
Forte Developer
EXE Technologies
(610) 872-4400 Ext.222
__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
<a href="http://auctions.yahoo.com/">http://auctions.yahoo.com/</a>
[1185 byte] By [
] at [2007-11-25 5:00:45]

Hi Kevin,
>From the answers I've got it seems Forte parser is a
non-validating one. So we have to look for an external
tool to validate these messages. What I am concerned
about is the integration with Forte.
Thanks for your help!
Rumen
>Rumen,
>From Tech Note 11811:
>"ParserFactory.makeParser() will return a default,
>non-validating XML parser."
>My experience is that Forte's default XML parser will
>not validate but will throw an exception if the XML
>document is not well formed. I'm using the DOM
>model and this exception happens on the
>Document.importDocument( ) method.
>If you want anything more than that you'll have to do
>it externally.
>Kevin
--Original Message--
From:Rumen Georgiev [<a href=
"mailto:rumeng@rocketmail.com">mailto:rumeng@rocketmail.com</a>]
Sent:Thursday, April 19, 2001 11:49 AM
To: forte-users@lists.xpedior.com
Subject: Validating XML message...
We have to validate inbound XML messages before
processing them. The guys on the other side are
following XMLSchema recommendations to create their
messages using xsd file for validation. We plan to
use XMLParser Forte library and as far as I know it
validates against dtd file (haven't tried yet). If
this is true we have two options:
1. Find a program to convert xsd into dtd file and
use Forte XMLParser for validation.
2. Validate the message beforehand with an external
tool. That means integration between Forte and this
tool.
I would appreciate any help with either approach. Do
you know of a program doing xsd into dtd? Have you
used any existing tool on the market to validate
using XMLSchema? Or may be there is another solution
to
this?
Thank you in advance,
Rumen
=====
Rumen Georgiev
Forte Developer
EXE Technologies
(610) 872-4400 Ext.222
__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
<a href="http://auctions.yahoo.com/">http://auctions.yahoo.com/</a>
at 2007-6-29 9:19:24 >

Rumen,
One idea that is possible is to use an OLE interface to a 3rd party XML
product. This assumes your logic which needs to validate is running on a
Windows box. But if so, it may work. Many products have type libraries which
can be run through OLEGen to create Forte classes. Then you can use TOOL to
talk OLE to that product.
For example, XML Spy 3.5 has a type library from which I created a Forte
project. Unfortunately this product didn't offer any extra features than
Forte's XMLParser ( i.e. the API didn't allow me to validate the XML ) so I
am back to using Forte's parser until I can test another product. If you
find one that does what you want let me know.
I've used OLE a lot with Forte to get functionality from other products (
VISIO, MS Office ) that Forte doesn't provide and it works well. Its a
platform dependent solution but one that may work for you.
Kevin
--Original Message--
From: Rumen Georgiev [<a href=
"mailto:rumeng@rocketmail.com">mailto:rumeng@rocketmail.com</a>]
Sent: Friday, April 20, 2001 07:21
To: Kevin_Shaughnessy@CalPERS.CA.GOV
Cc: forte-users@lists.xpedior.com
Subject: RE: Validating XML message...
Hi Kevin,
>From the answers I've got it seems Forte parser is a
non-validating one. So we have to look for an external
tool to validate these messages. What I am concerned
about is the integration with Forte.
Thanks for your help!
Rumen
>Rumen,
>From Tech Note 11811:
>"ParserFactory.makeParser() will return a default,
>non-validating XML parser."
>My experience is that Forte's default XML parser will
>not validate but will throw an exception if the XML
>document is not well formed. I'm using the DOM
>model and this exception happens on the
>Document.importDocument( ) method.
>If you want anything more than that you'll have to do
>it externally.
>Kevin
--Original Message--
From:Rumen Georgiev [<a href=
"mailto:rumeng@rocketmail.com">mailto:rumeng@rocketmail.com</a>]
Sent:Thursday, April 19, 2001 11:49 AM
To: forte-users@lists.xpedior.com
Subject: Validating XML message...
We have to validate inbound XML messages before
processing them. The guys on the other side are
following XMLSchema recommendations to create their
messages using xsd file for validation. We plan to
use XMLParser Forte library and as far as I know it
validates against dtd file (haven't tried yet). If
this is true we have two options:
1. Find a program to convert xsd into dtd file and
use Forte XMLParser for validation.
2. Validate the message beforehand with an external
tool. That means integration between Forte and this
tool.
I would appreciate any help with either approach. Do
you know of a program doing xsd into dtd? Have you
used any existing tool on the market to validate
using XMLSchema? Or may be there is another solution
to
this?
Thank you in advance,
Rumen
=====
Rumen Georgiev
Forte Developer
EXE Technologies
(610) 872-4400 Ext.222
__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
<a href="http://auctions.yahoo.com/">http://auctions.yahoo.com/</a>
at 2007-6-29 9:19:24 >

Hi Nick,
I looked at XMLParser library and the answer to your
question is No - I am not sure if it does it. I don't
see any class or method that suggests doing this.
I am new to this and I was assuming that Forte might
do validation when creating the Document. XMLSchema is
new on the market and I am sure Forte doesn't
implement it (at least till v3.0.M). I was hoping that
it validates against dtd which on the other hand has
been there for a long time.
Thanks for your input!
Rumen
>Are you sure XMLParser validates? To the bestof
>my knowledge and experience
>I don't believe that it does do validation. This
>would imply that option 2 is your only choice.
>Nick.
--Original Message--
From:Rumen Georgiev [<a href=
"mailto:rumeng@rocketmail.com">mailto:rumeng@rocketmail.com</a>]
Sent:Thursday, April 19, 2001 11:49 AM
To: forte-users@lists.xpedior.com
Subject:(forte-users) Validating XML message...
We have to validate inbound XML messages before
processing them. The guys on the other side are
following XMLSchema recommendations to create their
messages using xsd file for validation. We plan to
use
XMLParser Forte library and as far as I know it
validates against dtd file (haven't tried yet). If
this is true we have two options:
1. Find a program to convert xsd into dtd file and
use
Forte XMLParser for validation.
2. Validate the message beforehand with an external
tool. That means integration between Forte and this
tool.
I would appreciate any help with either approach. Do
you know of a program doing xsd into dtd? Have you
used any existing tool on the market to validate
using
XMLSchema? Or may be there is another solution to
this?
Thank you in advance,
Rumen
__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
<a href="http://auctions.yahoo.com/">http://auctions.yahoo.com/</a>
at 2007-6-29 9:19:24 >

