Table of Contents

Search

  1. Preface
  2. XML Concepts
  3. Using XML with PowerCenter
  4. Working with XML Sources
  5. Using the XML Editor
  6. Working with XML Targets
  7. XML Source Qualifier Transformation
  8. Midstream XML Transformations
  9. Appendix A: XML Datatype Reference
  10. Appendix B: XPath Query Functions Reference

XML Guide

XML Guide

DTD Elements

DTD Elements

In the DTD file, an element declaration defines an XML element. An element declaration has the following syntax:
<!ELEMENT product (#PCDATA)>
The DTD description defines the XML tag <product>. The description (#PCDATA) specifies parsed character data. Parsed data is the text between the start tag and the end tag of an XML element. Parsed character data is text without child elements.
The following example shows a DTD description of an element with two child elements:
<!ELEMENT boat (
brand, type
) > <!ELEMENT brand (#PCDATA) > <!ELEMENT type (#PCDATA) >
Brand and type are child elements of boat. Each child element can contain characters. In this example, brand and type can occur once inside the element boat. The following DTD description specifies that brand must occur one or more times for a boat:
<!ELEMENT boat (
brand+
) >

0 COMMENTS

We’d like to hear from you!