01-31-2012 07:03 PM
hi, i m practicing with nuxeo sdk and try to register a new schema like explained here http://doc.nuxeo.com/display/NXDOC/Document+types.
Unfortunatly, each time, i encounter the following error :
ERROR [org.nuxeo.ecm.core.schema.XSDLoader] FatalError: Premature end of file.
/>
ERROR [org.nuxeo.ecm.core.schema.TypeService] org.xml.sax.SAXParseException: Premature end of file.
and the schema file became totaly empty.
Did i miss something ?
02-01-2012 09:31 AM
You need to close the tag with the namespace prefix as well as schema as bjalon pointed out. For example
<?xml version="1.0"?>
<xs:schema targetNamespace="http://www.nuxeo.org/dam/schemas/dam/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:nxs="http://www.nuxeo.org/dam/schemas/dam/">
<xs:element name="client" type="xs:string" />
<xs:element name="brandMake" type="xs:string" />
<xs:element name="productModel" type="xs:string" />
</xs:schema>
01-31-2012 07:12 PM
Can you post the contents of your contribution file?
02-01-2012 04:53 AM
Here's the last try
02-01-2012 05:03 AM
Did you see your <xs
02-01-2012 09:26 AM
no, but i guess it's closed by </schema><br />
02-01-2012 09:29 AM
This is invalid XML. Please use a XML editor and validator to write XML, don't write it by hand.
02-01-2012 09:31 AM
You need to close the tag with the namespace prefix as well as schema as bjalon pointed out. For example
<?xml version="1.0"?>
<xs:schema targetNamespace="http://www.nuxeo.org/dam/schemas/dam/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:nxs="http://www.nuxeo.org/dam/schemas/dam/">
<xs:element name="client" type="xs:string" />
<xs:element name="brandMake" type="xs:string" />
<xs:element name="productModel" type="xs:string" />
</xs:schema>
02-01-2012 10:17 AM
thank you, so i just closed the schema like you did, double check the file...and still have the same error.
02-01-2012 10:26 AM
Then your file is still not valid XML. We can't help you without seeing the exact file (use pastebin.com for instance to show it to us), and anyway you should be able check by yourself that the XML is valid or not, there are many many tools to do it.
02-01-2012 12:27 PM
Finally, i should have checked the file one more time. it's working now with the closing </xs
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.