[ http://issues.apache.org/jira/browse/TUSCANY-450?page=all ]
Yang ZHONG updated TUSCANY-450:
-------------------------------
Attachment: fidelity.xsd
fidelity.xml
XML isn't correctly loaded, although element
"ElementOfSimpleTypeWithSDOOppositePropertyType" model may have a problem since
oppositeProperty doesn't exist within propertyType.
"fidelity.xsd" and "fidelity.xml" are attached for the following Test Case.
int sdotest::testFidelity()
{
DataFactoryPtr mdg = DataFactory::getDataFactory();
XSDHelperPtr xsh = HelperProvider::getXSDHelper(mdg);
xsh->defineFile("fidelity.xsd");
XMLHelperPtr myXMLHelper = HelperProvider::getXMLHelper(mdg);
XMLDocumentPtr myXMLDocument = myXMLHelper->loadFile("fidelity.xml");
DataObjectPtr root = myXMLDocument->getRootDataObject();
const char* p = root->getCString("ElementOfSimpleTypeWithSDOPropertyType");
if(strcmp(p, "idvalue0"))
return 0;
p = root->getCString("ElementOfSimpleTypeWithSDOOppositePropertyType");
if(strcmp(p, "idvalue0"))
return 0;
return 1;
}
> ElementOfSimpleTypeWithSDOPropertyType and
> ElementOfSimpleTypeWithSDOOppositePropertyType not supported
> -------------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-450
> URL: http://issues.apache.org/jira/browse/TUSCANY-450
> Project: Tuscany
> Issue Type: Bug
> Components: C++ SDO
> Affects Versions: Cpp-current
> Environment: Windows XP
> Reporter: Simon Laws
> Fix For: Cpp-current
>
> Attachments: fidelity.xml, fidelity.xsd
>
>
> reading
>
> <ElementOfSimpleTypeWithSDOPropertyType>idvalue0</ElementOfSimpleTypeWithSDOPropertyType>
>
> <ElementOfSimpleTypeWithSDOOppositePropertyType>idvalue0</ElementOfSimpleTypeWithSDOOppositePropertyType>
> with schema
> <element name="ElementOfSimpleTypeWithSDOPropertyType" type="IDREF"
> sdo:propertyType="tns:SimpleTypeWithNameType"/>
> <element name="ElementOfSimpleTypeWithSDOOppositePropertyType"
> type="IDREF" sdo:propertyType="tns:SimpleTypeWithNameType"
> sdo:oppositeProperty="tns:ElementOfSimpleTypeWithSDOPropertyType"/>
> and writing out again lead to these element being missing
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]