Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLDOM building a valid document for an external DTD
Message
From
12/03/2000 01:50:12
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00344636
Message ID:
00344681
Views:
17
>Problem of the day:
>
>I have an external DTD and I must build XML documents that conform to that DTD. I can not, as in all of the stuff in Rick's wwXML classlib, build my own DTD on the fly from the content of what I am sending. This is because the order of tags inside the document is significant when using a validating XML parser.
>

I'm foggy. Are you trying to create an XML document from a DTD, or the other way around? As you probably know, you can create nodes through the Document object using oDOM.CreateNode(). AFAIK, there is no built in support for constructing a DTD. Sorry if I'm a mile off here.



FWIW, I have discarded the idea of using DTDs in favor of Schemas because of this and all the other reasons that come along with the fact that DTDs are not XML, and Schemas are. Schemas can be read and created with the parser just like the documents they are validating. If you have any control over the decision of which to use, I highly recommend investigating what schemas can get you.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform