Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » XML Schema Generation and <!DOCTYPE>-statements: How to?
XML Schema Generation and <!DOCTYPE>-statements: How to? [message #17267] Thu, 10 April 2003 17:29 Go to next message
Eclipse UserFriend
Originally posted by: dirk.schesmer.divos.de

Hi all,

I'd like to know whether XSD can handle the <!DOCTYPE portions (being
optional, but still in heavy use) specified in the header part of an
XSD-file, as well. I did not find an API for it.

You see, e.g. XMLSchema.xsd until recently contained something like:
<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN"
"XMLSchema.dtd" [
<!-- provide ID type information even for parsers which only read the
internal subset -->

and the document world is still governed by DTDs...

Thanks, Dirk V. Schesmer
Re: XML Schema Generation and <!DOCTYPE>-statements: How to? [message #17366 is a reply to message #17267] Thu, 10 April 2003 18:24 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Dirk,

Sometimes these DOCTYPE things will require loading DTDs that are "hard
to find", so it may fail because of that. There is nothing in the XSD
model to access DOCTYPE information, but it will be available in the
underlying DOM (i.e., xsdSchema.getDocument()).

"Dirk V. Schesmer" wrote:

> Hi all,
>
> I'd like to know whether XSD can handle the <!DOCTYPE portions (being
> optional, but still in heavy use) specified in the header part of an
> XSD-file, as well. I did not find an API for it.
>
> You see, e.g. XMLSchema.xsd until recently contained something like:
> <!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN"
> "XMLSchema.dtd" [
> <!-- provide ID type information even for parsers which only read the
> internal subset -->
>
> and the document world is still governed by DTDs...
>
> Thanks, Dirk V. Schesmer
Re: XML Schema Generation and <!DOCTYPE>-statements: How to? [message #567611 is a reply to message #17267] Thu, 10 April 2003 18:24 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33216
Registered: July 2009
Senior Member
Dirk,

Sometimes these DOCTYPE things will require loading DTDs that are "hard
to find", so it may fail because of that. There is nothing in the XSD
model to access DOCTYPE information, but it will be available in the
underlying DOM (i.e., xsdSchema.getDocument()).

"Dirk V. Schesmer" wrote:

> Hi all,
>
> I'd like to know whether XSD can handle the <!DOCTYPE portions (being
> optional, but still in heavy use) specified in the header part of an
> XSD-file, as well. I did not find an API for it.
>
> You see, e.g. XMLSchema.xsd until recently contained something like:
> <!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN"
> "XMLSchema.dtd" [
> <!-- provide ID type information even for parsers which only read the
> internal subset -->
>
> and the document world is still governed by DTDs...
>
> Thanks, Dirk V. Schesmer


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Automatic Schema validation?
Next Topic:Automatic Schema validation?
Goto Forum:
  


Current Time: Fri Sep 20 09:19:07 GMT 2024

Powered by FUDForum. Page generated in 0.05400 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top