Progress XML and Crystal

jeffsic

New Member
Hi, i am using OpenEdge 10 to create an XML file for use with Crystal Reports XI. I am using the following code to generate the XML file.

ASSIGN
cTargetType = "file"
cFile = "c:\shipperxml.xml"
lFormatted = YES
cEncoding = ?
cSchemaLocation = ?
lWriteSchema = YES
lMinSchema = NO.
v-buffer-handle = BUFFER tt-shipper:HANDLE.
retOK = v-buffer-handle:WRITE-XML(cTargetType, cFile,lFormatted, cEncoding, cSchemaLocation, lWriteSchema, lMinSchema).

My problem is to the naked eye it seems to create an XML file with the schema embedded but if i try to use it as a source in Crystal it says Schema is not defined in the XML file. I need to use embedded schema not a seperate schema file. Any suggestions would be greatly appreciated. As you might have guessed, I am new to the XML part of progress.

Thanks in advance for the help.

Jeff
 
additional information i have found: it looks like i need to get a DTD reference into the xml. I see there is a write-external-dtd but it references a SAX reference which lost me. I thought it would simple to create an XML document with embedded schema for any package to read but apparently progress hasn't master this yet. Again any help as i am officially stuck.

Thanks

Jeff
 
Back
Top