Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX -
Contents Index PreviousNext

Appendix E Notes on XML Documents> E.3 Notes on the XML Format

E.3.1 Setting Default Value of Attribute in DTD Declarations

If the default value of attribute is set in the DTD declarations, the user will not be able to search data with the default value of attribute.

The following examples assume that Document A below, exists.

Document A

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE doc[
<!ELEMENT doc (employee)>
<!ELEMENT employee (#PCDATA)>
<!ATTLIST employee id CDATA "0000">
]>

<doc>
  <employee>smith</employee>
</doc>

Example

Search for document whose employee id (id) consists of the keyword '0000'.

/doc/employee/@id='0000'

Result: Document A is not returned.


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006