Re: XML ELEMENT value required?

Subject: Re: XML ELEMENT value required?
From: "Mark Baker" <listsub -at- analecta -dot- com>
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Fri, 2 Apr 2004 15:00:07 -0500


Ned Bedinger asked:

> In an XML DTD, can I force an XML element's value
> to be
> required ? I want the parser to kick out an error
> if a certain element doesn't have a value.

In a DTD, no. In a schema, yes, by specifying its data type.

You can, of course, check for a value in the prcessing application that
receives the parsed data.

---
Mark Baker
Analecta Communications
www.analecta.com
+1 613 614 5881


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ROBOHELP X5 - ALL NEW VERSION!!

Have you tried the latest in Help Authoring from RoboHelp?
Try ROBOHELP X5 for Free - Now with Word 2003 support, Content
Management, Multi-Author support, PDF and XML support and much more!

Download a free trial today: http://www.ehelp.com/techwr-l4

---
You are currently subscribed to techwr-l as:
archiver -at- techwr-l -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit
http://www.raycomm.com/techwhirl/ for more resources and info.



References:
Q: XML ELEMENT value required?: From: Ned Bedinger

Previous by Author: RE: Great piece on marketing collateral
Next by Author: Re: XML ELEMENT value required?
Previous by Thread: Q: XML ELEMENT value required?
Next by Thread: RE: XML ELEMENT value required?


What this post helpful? Share it with friends and colleagues:


Sponsored Ads