Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EPF » XML XSD mismatch
XML XSD mismatch [message #665973] Mon, 18 April 2011 12:20 Go to next message
fixed-term.simon.braun is currently offline fixed-term.simon.braun
Messages: 8
Registered: October 2010
Junior Member
Hi together,

I've modeled the development process of my company in EPF 1.5.1.
Then I exported a XML of this process.
But this XML didn't match to the XML Schema you can download on the eclipse webpage. (http://www.eclipse.org/epf/tool_component/xml_schema.php)
The XML Editor returned an error, that the use of some attributes is not permitted. ('type' attribute)
How is this possible, I thought I can only export XMLs that confirm to the XSD.
IMHO I am neither permitted to do changes to the XML nor to the XSD, so how can I make them match together?

Thanks for your help!
Best regards,
Simon

[Updated on: Mon, 18 April 2011 12:20]

Report message to a moderator

Re: XML XSD mismatch [message #668112 is a reply to message #665973] Tue, 03 May 2011 19:21 Go to previous messageGo to next message
Bing Xu is currently offline Bing Xu
Messages: 11
Registered: July 2009
Junior Member
The schema published for EPF 1.5.1 is right one, and we have encountered no issue in parsing the exported data. EPF Composer 1.5.1(.1) Import from XML uses the same schema to parse the import XML data.

Please double check how you do your parsing and what it is the exactly error.

We have known some XML tools that could not parse the schema correctly due to the fact they do not correctly interpret the following tag with maxOccurs="unbounded".
We are also confident that the schema works as it has been verified by two other 3rd parties using it.
...
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="MandatoryInput" type="xsd:string"/>
<xsd:element name="Output" type="xsd:string"/>
<xsd:element name="AdditionallyPerformedBy" type="xsd:string"/>
<xsd:element name="OptionalInput" type="xsd:string"/>
<xsd:element name="Estimate" type="xsd:string"/>
<xsd:element name="EstimationConsiderations" type="xsd:string"/>
<xsd:element name="ToolMentor" type="xsd:string"/>
</xsd:choice>
......

Thanks very much.
Bing.
Re: XML XSD mismatch [message #670281 is a reply to message #668112] Fri, 13 May 2011 11:02 Go to previous messageGo to next message
fixed-term.simon.braun is currently offline fixed-term.simon.braun
Messages: 8
Registered: October 2010
Junior Member
Hi Bing,

the import in EPF Composer Import from XML works fine, so I'm quite sure the schema is correct.
Only if I want to validate the XML with the XSD over a XML-Editor it doesn't work.
And I tryed multiple Editors...
Error Message: "The document contains an attribute \'type\' for element <Method Package> that is not permitted." in this line:
<MethodPackage xsi:type="uma:ContentCategoryPackage" name="ContentCategories" id="_h7rrMAaWEeCQDPDO8aIUzg">
and xsi should be definde here: "<uma:MethodLibrary xmlns:xsi="w3.org/2001/XMLSchema-instance""
So is it possible to validate it via Editor, or do I have to use some special editor?
The XML is auto-generated and the XSD is downloaded, so there shouldn't be errors in. And I am using the correct versions of both!

Thanks very much!
Best regards,
Simon
Re: XML XSD mismatch [message #671835 is a reply to message #665973] Thu, 19 May 2011 06:45 Go to previous message
fixed-term.simon.braun is currently offline fixed-term.simon.braun
Messages: 8
Registered: October 2010
Junior Member
Hi together,

problem is solved, respectively there was no problem.
The Editor causes the error.
XML output from EPF and XSD are correct, so everythings just fine Smile

Best regards
Simon
Previous Topic:Installation Problem
Next Topic:Concept x Term Definition
Goto Forum:
  


Current Time: Mon Oct 20 21:28:13 GMT 2014

Powered by FUDForum. Page generated in 0.11231 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software