DTD Parser

The XML specification includes both XML and DTD within its scope. Within an XML document's <!DOCTYPE>, there can be an internal subset of the DTD, or an external DTD can be referenced. In order to fully comply with the XML 1.0 specification (and/or XML 1.1), a XML parser must also be a DTD parser.

Stylus Studio® contains several such parsers, each of which is used as the occasion demands.

DTD Editor Parser

The DTD Editor, with it's Text and Tree editing modes, uses a DTD parser to read the initial file and process it for Sense:X (intelligent XML editing) support.

DTD Validation Parsers

In addition to the internal DTD parser which can be used to validate files against DTDs, Stylus Studio® includes other validation engines that can parse and validate DTD-using XML documents:

  • Microsoft MSXML 4.0 DOM Parser
  • Microsoft MSXML 6.0 DOM Parser
  • Apache Xerces-J Parser
  • Microsoft .Net System.Xml Parser
  • Xerces-C++ Parser (internal), also from the Apache XML Foundation

So, counting the internal DTD parser, that gives several different ways to parse and validate. This helps you to ensure if there are any corner cases or gray areas (or even bugs in some validator), you'll have spotted them before deploying your DTD.

DTD Parser

(The internal parser is triggered by just hitting the Xerces DTD Parser button without hitting the dropdown arrow next to it.)

SAX Parsing of DTDs

When an XML file is parsed, there is an option on the SAX interface to retrieve certain DTD events. More information can be found at the SAX Project Extensions pages.

DOM Parsing of DTDs

The DOM Level 3 Core API includes objects and methods for navigating both XML and DTD documents, as well as XML documents refering to internal DTD subsets or external DTDs. The Document Object Model (DOM) can be used in your own application from a variety of languages, including Java, C++, Python, and ECMAScript (also known in some circles as JScript or JavaScript).

DTD to XSD Parsing

Another area where a DTD parser is used is in the Document Wizards, namely converting DTDs to XML Schema documents and in creating sample XML documents from DTDs.

As you can see from these statements, Stylus Studio® uses several forms of DTD Parsing technology, in Java, C++ and .Net, both to validate and to serve as a template for XML instance creation. To explore more, download and experiment with your own free copy of Stylus Studio®.

Accessing Relational Databases as XML with Stylus Studio's File Explorer

This demonstration is the first part of our series on working with relational and XML data, covering how to use Stylus Studio's File Explorer to connect to and query relational database tables as XML.

Television

Television

DTD Generator

Stylus Studio's DTD Generator supports the automatic generation and association of both internal and external DTDs based on XML instance documents.

JSP Editor

Edit and Validate JSP 1.2 and JSP 2.0 documents. Includes JSP syntax coloring, JSP code completion and more.

Stylus Most Wanted

PURCHASE STYLUS STUDIO ONLINE TODAY!!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Try Stylus DTD Generator

Generate DTDs with our award-winning DTD conversion and DTD generation utilities - Download a free trial!

Learn Stylus Studio in 6 Minutes

Can six minutes change your life? A new action-packed online video demonstration covers how to use Stylus Studio in just six minutes! Watch this video and change the way you develop XML applications forever!

Ask Someone You Know

Does your company use Stylus Studio? Do your competitors? Engineers from over 100,000 leading companies use Stylus Studio, and now you can ask someone from your own organization about their experiences using Stylus Studio.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.