problem with prefix [message #431002] |
Tue, 23 June 2009 18:38  |
Eclipse User |
|
|
|
Originally posted by: rodrigo.garcia.kotasoft.com
Hi,
I have a problem with the ns prefix. Sometimes the xml is created
writing the prefix before each element, but sometimes without it.
I have checked the .ecore and the .genmodel and I can't see anything wrong.
Any idea?
Best regards and thank you
|
|
|
|
|
|
|
|
Re: problem with prefix [message #431124 is a reply to message #431058] |
Mon, 29 June 2009 12:54  |
Eclipse User |
|
|
|
Originally posted by: rodrigo.garcia.kotasoft.com
Ok, thank you Ed.
Best regards
Ed Merks escribió:
> Rodrigo,
>
> This part of the serialization makes it clear that you're serializing
> with an XMIResourceImpl
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <com.kotasoft.core.model.usecase:Usecase xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:com.kotasoft.core.model.usecase="http://kotasoft.com/usecase" name="UC-001" id="_eFym8WFmEd6ozbsTiu8hnQ" description="UC-001">
>
>
> You need to ensure that the generated resource factory with the right
> options is used to create the resource you use for loading and saving
> your instances.
>
>
> Rodrigo García wrote:
>> Is a nested one.
>>
>> The element should be qualified.
>>
>> I attatch you the .ecore and the .genmodel and an example of xml
>> generated with my model.
>>
>> Do you need some more info?
>>
>> Thank you
>>
>> Ed Merks escribió:
>>> Rodrigo,
>>>
>>> Comments below.
>>>
>>> Rodrigo García wrote:
>>>> Well, I have observed that it seems it doesn't change more, but I
>>>> have the xml without the prefix and I'd like to have the prefix.
>>> Hmmm.
>>>>
>>>> I have this element:
>>>>
>>>> <precondition description="anything"/>
>>> Is this a root element in the serialization or a nested one?
>>>>
>>>> But I'd like :
>>>>
>>>> <com.kotasoft.core.model.usecase:precondition description="anything"/>
>>> Is the element supposed to be qualified according to the schema or is
>>> it just an unqualified local element?
>>>>
>>>> I have the basePackage and the nsPrefix defined.
>>>>
>>>> Any idea?
>>> You provide to little information for me to help properly.
>>>>
>>>> Ed Merks escribió:
>>>>> Rodrigo,
>>>>>
>>>>> Comments below.
>>>>>
>>>>> Rodrigo García wrote:
>>>>>> Hi,
>>>>>>
>>>>>> I have a problem with the ns prefix. Sometimes the xml is created
>>>>>> writing the prefix before each element, but sometimes without it.
>>>>> What's the difference between the sometimes when it does and the
>>>>> sometimes when it doesn't?
>>>>>>
>>>>>> I have checked the .ecore and the .genmodel and I can't see
>>>>>> anything wrong.
>>>>> What specifically were you looking for?
>>>>>>
>>>>>> Any idea?
>>>>> I imagine that it depends on the values in the DocumentRoot's
>>>>> XMLPrefixMap value, but given that the difference between
>>>>> "sometimes" and "sometimes not" is mysterious, it's really hard to
>>>>> say much of anything informative...
>>>>>>
>>>>>> Best regards and thank you
>>
|
|
|
Powered by
FUDForum. Page generated in 0.04753 seconds