LOCAL oxml as XMLAdapter oxml = NEWOBJECT("xmladapter") oxml.LoadXML("c:\cmbhs\cmbhsadultuniformassessment.xml") ?oXMLAdapter.Tables.Item(1).Fields.Item(1).DataTypeIt still fails on the "c:references tag"
><?xml version="1.0" encoding="utf-8"?> ><xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns:c="http://CMBHSSchemas.MHCenter.CareDecodeTables" > >xmlns="http://CMBHSSchemas.MHCenter.CMBHSAdultUniformAssessment" > >targetNamespace="http://CMBHSSchemas.MHCenter.CMBHSAdultUniformAssessment" xmlns:xs="http://www.w3.org/2001/XMLSchema"> > <xs:import schemaLocation="CareDecodeTables.xsd" namespace="http://CMBHSSchemas.MHCenter.CareDecodeTables" /> > <xs:annotation> > <xs:appinfo> > <c:references xmlns:c="http://CMBHSSchemas.MHCenter.CareDecodeTables"> > <c:reference targetNamespace="http://CMBHSSchemas.MHCenter.CareDecodeTables" /> > </c:references> > <b:references> > <b:reference targetNamespace="http://CMBHSSchemas.MHCenter.CareDecodeTables" /> > </b:references> > </xs:appinfo> > </xs:annotation> > <xs:complexType name="AdultUniformAssessment"> > <xs:sequence> > <xs:element minOccurs="1" name="COMP"> > <xs:annotation> > <xs:documentation> > Component Code. Must equal your component code > </xs:documentation> > </xs:annotation> > <xs:simpleType> > <xs:restriction base="xs:string" /> > </xs:simpleType> > </xs:element> > <xs:element minOccurs="1" default="1" name="REC_TYPE"> > <xs:annotation> > <xs:documentation> > Record Type. Transaction data record Must equal '1' > </xs:documentation> > </xs:annotation> > <xs:simpleType> > <xs:restriction base="xs:int"> > <xs:pattern value="[1]" /> > </xs:restriction> > </xs:simpleType> > </xs:element> > <xs:element minOccurs="1" default="28" name="TRANS"> > <xs:annotation> > <xs:documentation> > Transaction Code. Batch data transaction Must equal '28' > </xs:documentation> > </xs:annotation> > <xs:simpleType> > <xs:restriction base="xs:int"> > <xs:pattern value="[2][8]" /> > </xs:restriction> > </xs:simpleType> > </xs:element> > </xs:sequence> > </xs:complexType> ></xs:schema> >>
>><?xml version="1.0" encoding="utf-16"?> >><xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns:c="http://CMBHSSchemas.MHCenter.CareDecodeTables" xmlns="http://CMBHSSchemas.MHCenter.CMBHSAdultUniformAssessment" targetNamespace="http://CMBHSSchemas.MHCenter.CMBHSAdultUniformAssessment" xmlns:xs="http://www.w3.org/2001/XMLSchema"> >> <xs:import schemaLocation="CareDecodeTables.xsd" namespace="http://CMBHSSchemas.MHCenter.CareDecodeTables" /> >> <xs:annotation> >> <xs:appinfo> >> <c:references xmlns:c="http://CMBHSSchemas.MHCenter.CareDecodeTables"> >> <c:reference targetNamespace="http://CMBHSSchemas.MHCenter.CareDecodeTables" /> >> </c:references> >> <b:references> >> <b:reference targetNamespace="http://CMBHSSchemas.MHCenter.CareDecodeTables" /> >> </b:references> >> </xs:appinfo> >> </xs:annotation> >> <xs:complexType name="AdultUniformAssessment"> >> <xs:sequence> >> <xs:element minOccurs="1" name="COMP"> >> <xs:annotation> >> <xs:documentation> >> Component Code. Must equal your component code >> </xs:documentation> >> </xs:annotation> >> <xs:simpleType> >> <xs:restriction base="xs:string" /> >> </xs:simpleType> >> </xs:element> >> <xs:element minOccurs="1" default="1" name="REC_TYPE"> >> <xs:annotation> >> <xs:documentation> >> Record Type. Transaction data record Must equal '1' >> </xs:documentation> >> </xs:annotation> >> <xs:simpleType> >> <xs:restriction base="xs:int"> >> <xs:pattern value="[1]" /> >> </xs:restriction> >> </xs:simpleType> >> </xs:element> >> <xs:element minOccurs="1" default="28" name="TRANS"> >> <xs:annotation> >> <xs:documentation> >> Transaction Code. Batch data transaction Must equal '28' >> </xs:documentation> >> </xs:annotation> >> <xs:simpleType> >> <xs:restriction base="xs:int"> >> <xs:pattern value="[2][8]" /> >> </xs:restriction> >> </xs:simpleType> >> </xs:element> >>