help with DTD
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngwebservices' list.


Ahmed, Salman
<!ELEMENT MessageType=IQ (#PCDATA)>

The value will always be "IQ", this is crapping out in my DTD..ideas? Is
this possible to fix the character value as e.g. 'IQ"?
Reply to this message...
 
    
Dan Wahlin
You can if you use attributes in DTDs but not elements. Elements can
only have #PCDATA, EMPTY, ANY or a content model but not a default
value:

<!ELEMENT MessageType (#PCDATA)>

With attributes you can assign a default though:

<!ATTLIST Message MessageType CDATA “IQ”>

HTH,

Dan Wahlin

Wahlin Consulting LLC

Microsoft MVP - ASP.NET

HYPERLINK "http://www.xmlforasp.net/";http://www.XMLforASP.NET

XML for ASP.NET Developers by Dan Wahlin in bookstores everywhere!

-----Original Message-----
From: Ahmed, Salman [mailto:Click here to reveal e-mail address]
Sent: Tuesday, July 16, 2002 7:01 AM
To: aspngwebservices
Subject: [aspngwebservices] help with DTD

<!ELEMENT MessageType=IQ (#PCDATA)>

The value will always be "IQ", this is crapping out in my DTD..ideas?
Is this possible to fix the character value as e.g. 'IQ"?

| [aspngwebservices] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebservices.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 07/01/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 07/01/2002
Reply to this message...
 
    
Ahmed, Salman
Interesting, thanks for the info.

Is there such as thing as a XML to DTD tool out there?

-----Original Message-----
From: Dan Wahlin [mailto:Click here to reveal e-mail address]
Sent: Tuesday, July 16, 2002 10:31 AM
To: aspngwebservices
Subject: [aspngwebservices] RE: help with DTD

You can if you use attributes in DTDs but not elements. Elements can only
have #PCDATA, EMPTY, ANY or a content model but not a default value:

<!ELEMENT MessageType (#PCDATA)>

With attributes you can assign a default though:

<!ATTLIST Message MessageType CDATA "IQ">

HTH,

Dan Wahlin

Wahlin Consulting LLC

Microsoft MVP - ASP.NET

http://www.XMLforASP.NET <http://www.xmlforasp.net/>

XML for ASP.NET Developers by Dan Wahlin in bookstores everywhere!

-----Original Message-----
From: Ahmed, Salman [mailto:Click here to reveal e-mail address]
Sent: Tuesday, July 16, 2002 7:01 AM
To: aspngwebservices
Subject: [aspngwebservices] help with DTD

<!ELEMENT MessageType=IQ (#PCDATA)>

The value will always be "IQ", this is crapping out in my DTD..ideas? Is
this possible to fix the character value as e.g. 'IQ"?

| [aspngwebservices] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebservices.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngwebservices] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebservices.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 07/01/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 07/01/2002
Reply to this message...
 
 
System.Messaging.MessageType




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com