Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343037 - Export schema command produces invalid documents when multiple schemas are being exported
Summary: Export schema command produces invalid documents when multiple schemas are be...
Status: ASSIGNED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WTP Incubator (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Dimitar Donchev CLA
QA Contact: Dimitar Tenev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-16 10:06 EDT by Dimitar Donchev CLA
Modified: 2021-11-18 16:19 EST (History)
0 users

See Also:


Attachments
Try to export *ns2 namespaced schema from this doc (7.16 KB, text/plain)
2011-04-16 10:07 EDT, Dimitar Donchev CLA
no flags Details
to reproduce (2.87 KB, text/plain)
2011-04-16 10:09 EDT, Dimitar Donchev CLA
no flags Details
patch fixing the DOM migration issue (3.66 KB, patch)
2011-06-11 15:51 EDT, Stanislav Nichev CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitar Donchev CLA 2011-04-16 10:06:52 EDT
Export schema command produces new XML schemas with empty <import" schema location="XXXXXXXXXXXXX"/> attributes!

Try exporting http://org.dido.ns from the attached wsdl!
See the errors in 2 of the three extracted schemas.

Best Regards,
Dido
Comment 1 Dimitar Donchev CLA 2011-04-16 10:07:37 EDT
Created attachment 193416 [details]
Try to export *ns2 namespaced schema from this doc
Comment 2 Dimitar Donchev CLA 2011-04-16 10:09:39 EDT
Created attachment 193417 [details]
to reproduce

Try exporting  http://org.dido.ns2 from this doc. See the producet artefacts
Comment 3 Dimitar Donchev CLA 2011-04-16 10:13:19 EDT
Comment on attachment 193416 [details]
Try to export *ns2 namespaced schema from this doc

sorry, chose a wrong file to attach.
Comment 4 Stanislav Nichev CLA 2011-06-11 15:51:57 EDT
Created attachment 197845 [details]
patch fixing the DOM migration issue

Hi Colleagues,

I have prepared a fix for this issue. The problem was in the DOM migration.
The logic relied on element.getAttribute() to return null when there was no attribute defined.

Regards,
Stanislav