[yunqa.de] Re: Help with DiXML

  • From: Delphi Inspiration <delphi@xxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Wed, 31 Oct 2007 15:51:48 +0100

>I?m having some difficulties in getting a test program working with the DIXML 
>component to perform an XSLT transformation. I have actually copied code from 
>your DIXml_XSLT_Browser demo. I actually don?t have any problems getting the 
>demo to compile and work as expected, however when I try getting the same code 
>to work in another application. The problem is when I try to assign a value to 
>the xml variable that is of type xmlDocPtr.
> 
>Do you have any ideas?
>Also do you have a help file that actually describes what some of these 
>functions do?

For the moment, please use the search tab in DIXml.chm which will point you to 
the relevant information. I must admit that the help is not yet fully complete, 
but I try to improve it as much as time permits.

Btw: I have released a new version of DIXml with support for XML schema 
validation plus demo project just this morning.

>  XmlFile := 
> 'D:\DelphiLibrary\DelphiInspiration\DIXML\Demos\DIXml_XSLT_Browser\glossary.xml';
>  
>à Problem is here. Xml is always nil and no matter what I do it doesn?t appear 
>to get assigned.
>
>  xml := xmlParseFile( PAnsiChar( XMLFileName ) );  // The value in 
> XMLFileName is a valid XML file path+filename

You code uses two different variables to store / retrieve the file name:

 * XmlFile
 * XmlfileName

I suppose that XmlFileName holds an empty string in your application. Parsing 
from an empty string file name returns a nil pointer because the document does 
not exist. Make sure you use the same, single variable in both cases.

Ralf  

_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



Other related posts:

  • » [yunqa.de] Re: Help with DiXML