Hi everyone,
I was wondering if anyone knew about creating schemas for exporting excel data to XML, as I'm a bit stumped. I've created my schema, data imports great, but data won't export. I've pinned down the bug: it's all because maxoccurs != 1. However, I need to have unbounded occurences, as I could have any number of shots and scenes that I need to express in XML. Does anyone know a workaround, so that I can keep the "unbounded" aspect of my schema, but manage to export?
Any help would be greatly appreciated! I've posted my schema below.
Thanks,
Gamms.
Code:<?xml version="1.0" encoding="ISO-8859-1" ?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="PROJECT"> <xs:complexType> <xs:sequence> <xs:element name="PROJECT_SETTINGS"> <xs:complexType> <xs:sequence> <xs:element name="DEFAULT_RES" type="xs:string"/> <xs:element name="FRAMERATE" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="SCENE" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element name="SHOT" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element name="ACCESSORY" type="xs:string"/> <xs:element name="BACKGROUND" type="xs:string"/> <xs:element name="CHARACTER" type="xs:string"/> <xs:element name="DESCRIPTION" type="xs:string"/> <xs:element name="DURATION" type="xs:string"/> </xs:sequence> <xs:attribute name="shotNo" type="xs:string" use="required"/> </xs:complexType> </xs:element> </xs:sequence> <xs:attribute name="sceneNo" type="xs:string" use="required"/> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>