[
Lists Home |
Date Index |
Thread Index
]
- From: rbourret@dvs1.informatik.tu-darmstadt.de (Ron Bourret)
- To: xml-dev@ic.ac.uk
- Date: Thu, 1 Oct 1998 15:41:27 +0200
> I work with msxml and xml files generated by a database. When a tag value
> is absent, the database don't generate the tag. In that way, when my
> scripts try to treat it ... an error occur. How can I bypass this problem.
> I already try, to attibute the tag to a VAR (in my JScript) and supply and
> IF statement, but with no result.
If the element is not required to be present (can be NULL in your database),
change the DTD so that it's presence is optional. For example, if the foo
element always includes bar but only sometimes includes baz, use the
declaration:
<!ELEMENT foo (bar, baz?)>
-- Ron Bourret
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)
|