Altova Mailing List Archives

RE: MXXMLWriter Sample

From: Peter Nimmo <PeterNimmo@----------.------>
Date: 4/10/2006 6:50:00 AM

v-kevy@o... (Kevin Yu [MSFT]) wrote in

> Hi Peter,
> The second argument is the public ID for the DTD, as you can see from
> the document.
> /html /64d12dab-ad57-43f9-90b8-476613f10442.asp
> If you need the system ID to be generated, please use 
> lexh.startDTD "", "MyDTD", "http://eureka.sample/mydtd.dtd"
Hi Kevin,

Its not so much that I need the system ID to be generated, but as to why 
passing the exact same arguments to the functions results in different 
output depending on whether the VB versions of the interfaces are used or 

Using the modified code you wrote (using the C++ interfaces) I know get:

    	<!DOCTYPE  PUBLIC "MyDTD" "http://eureka.sample/mydtd.dtd" [

and the same with the VB interfaces.

The orignal set of arguments and the VB interfaces produced:
    	<!DOCTYPE MyDTD SYSTEM "http://eureka.sample/mydtd.dtd" [

from "lexh.startDTD "MyDTD", "", "http://eureka.sample/mydtd.dtd"  "

I still do not understand why empty fields are shown as "" (although on 
the book cover line one of the empty parameters produces an extra space 
instead) with the C++ interfaces.

Which version is creating the correct XML according to the documentation?




These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.