Absent TAGs ...
Ron Bourret
rbourret at dvs1.informatik.tu-darmstadt.de
Thu Oct 1 15:49:41 BST 1998
> 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 at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev
mailing list