On May 7, 9:19 am, Savian <savian....@gmail.com> wrote:
> On May 7, 5:17 am, John <jpar...@rac.co.uk> wrote:
> > Hi,
> > I have a sas dataset, and I need to export this to an XML document
> > using an XML schema (XSD) file (with value restrictions etc).
> > I've looked through the xml libname documentation and can only find
> > references to exporting XML docs whilst exporting a schema file, not
> > actually using the schema in the exported document.
> > I'm not sure if I've misunderstood how XML documents work as I've
> > never used them before...do I have the wrong end of the stick??
> > Any pointers would be greatly appreciated!
> > John
> I am unsure what you want to do here John. Are you saying you want to
> restrict the exported values using an XSD?
You may have the wrong end of the stick.
You use the exported XML schema file to describe the contents of the
exported data set.
It seems from your question that you want to know that the XML file
conforms to the description in an existing schema file.
You can validate the XML output against that existing schema, using
XML tools, or just know that your code works and don't bother creating
an XML schema in your export.
Also, XMLmap may help you - http://support.sas.com/documentation/cdl/en/engxml/61740/HTML/default/a002485024.htm