🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.xml
4 messages
4 total messages Started by Maz Alf Wed, 18 Jun 2008 10:19
Does the XML Data Binding Wizard always work with no problems ?
#195
Author: Maz Alf
Date: Wed, 18 Jun 2008 10:19
62 lines
2833 bytes
Hello,

Just found the XML Data Binding Wizard and it looks really good.  However 
the code it generates does not compile.  the XSD file I gave it is well 
formed and valid.  But given I'm new at XML maybe its not defined correctly 
for the wizard.

Here are two example that the wizard generated for me:

Example 1

{ Forward Decls }

  IXMLProcessType = interface;
  IXMLProcess = interface;
  IXMLProcessList = interface;
  IXMLDisplay = interface;
  IXMLConditionalType = interface;
  IXMLImbeddedProcessType = interface;
  IXMLHistoryType = interface;
  IXMLTimestampType = interface;
  IXMLTimestampTypeList = interface;
  IXMLProcessFlowType = interface;
  IXMLScheduleType = interface;
  IXMLVars = interface;
  IXMLVarType = interface;
  IXMLSubTasks = interface;
  IXMLTaskType = interface;
  IXMLTaskTypeList = interface;
  IXMLDisplay = interface;       {  IXMLDisplay is re-declared and causes 
compiler error}
  IXMLCompleted = interface;
  IXMLVariable = interface;
  IXMLVariableList = interface;
  IXMLImbeddedProcess = interface;
  IXMLImbeddedProcessList = interface;
  IXMLInheritedProcessType = interface;
  IXMLInheritedProcessTypeList = interface;
  IXMLDisplay = interface;   {  IXMLDisplay is re-declared and causes 
compiler error}
  IXMLVariable = interface;   {  IXMLVariable is re-declared and causes 
compiler error}
  IXMLVarName = interface;
  IXMLVarValue = interface;

Example 2

{ Global Functions }

function GetProcess(Doc: IXMLDocument): IXMLProcess;
function LoadProcess(const FileName: WideString): IXMLProcess;
function NewProcess: IXMLProcess;
function GetProcess(Doc: IXMLDocument): IXMLProcessList; 
{function re-declared 3 lines above}
function LoadProcess(const FileName: WideString): IXMLProcessList; 
{function re-declared 3 lines above}
function NewProcess: IXMLProcessList; 
{function re-declared 3 lines above}

Can any one suggest A reason why I am getting this ?

Regards, Maz 
Re: Does the XML Data Binding Wizard always work with no problems ?
#201
Author: Kevin Frevert
Date: Thu, 19 Jun 2008 17:29
14 lines
1410 bytes
"Maz Alf" <MazAlfdot@bigpond.comdot> wrote in message 
news:4858e144@newsgroups.borland.com...
> Hello,
>
> Just found the XML Data Binding Wizard and it looks really good.  However 
> the code it generates does not compile.  the XSD file I gave it is well 
> formed and valid.  But given I'm new at XML maybe its not defined 
> correctly for the wizard.

Where is the schema coming from (XSD, DTD)?  Can you post an example 
(borland.public.attachments)?


krf 
Re: Does the XML Data Binding Wizard always work with no problems ?
#205
Author: Maz Alf
Date: Fri, 20 Jun 2008 13:41
10 lines
1280 bytes
"Kevin Frevert" <kevin@workdrinkingicewater.com> wrote in message 
news:485a96f7@newsgroups.borland.com...

> Where is the schema coming from (XSD, DTD)?  Can you post an example


Its an XSD approx 320 lines. I can post it all

Regards, Maz 
Re: Does the XML Data Binding Wizard always work with no problems ?
#206
Author: Kevin Frevert
Date: Fri, 20 Jun 2008 16:04
26 lines
1880 bytes
You can post it to borland.public.attachments

I suspect you have duplicate schema definitions (ex two or more defined 
'Display' nodes)  The import is rather simplistic and doesn't 'check' for 
those types of things (which is perfectly 'legal' schema-wise)

Have you tried Microsoft's XSD.exe?  It generates C# code, but you get an 
idea if it has the same issue.  If so and if possible, you may have to tweak 
the XSD.

Good luck,
krf

"Maz Alf" <MazAlfdot@bigpond.comdot> wrote in message 
news:485bb3a5$1@newsgroups.borland.com...
>
> "Kevin Frevert" <kevin@workdrinkingicewater.com> wrote in message 
> news:485a96f7@newsgroups.borland.com...
>
>> Where is the schema coming from (XSD, DTD)?  Can you post an example
>
>
> Its an XSD approx 320 lines. I can post it all
>
> Regards, Maz
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads