[ http://issues.apache.org/jira/browse/TUSCANY-908?page=all ]

Simon Laws updated TUSCANY-908:
-------------------------------

    Attachment: cdata.txt

A preliminary patch for handling CDATA sections. The approach taken is to allow 
CDATA sections to appear in property values within data objects. In this way 
CDATA can be accessed through the standard SDO API for either reading or 
creating strings,i.e. what you see is what you get. The user must be aware of 
the syntax of CDATA section markers and be prepared to process them. 

This gives us to oppotunity to experiment wih CDATA a little and see how we 
feel about this approach. It was not the only approach considered when looking 
for a solution. In particular the introdcution of special flags to the SDO core 
was considered. This approach is problematic when CDATA sections appear as part 
of a primitive string value. We would have to undertake so fairly serious 
changes to the SDO core to make primit string properties that contain CDATA 
sections and where in those strings the CDATA appears in order that it can be 
pulled out for processing. 

The patch has been created using subclipse which, AFAIK, doesn't support 
relative paths. Sorry about that. The answer is to decide where to apply it and 
then edit the patch file to change the contained paths appropriately. 

> CDATA sections are not handled
> ------------------------------
>
>                 Key: TUSCANY-908
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-908
>             Project: Tuscany
>          Issue Type: Bug
>          Components: C++ SDO
>    Affects Versions: Cpp-current, Cpp-M1, Cpp-M2
>         Environment: All
>            Reporter: Simon Laws
>         Assigned To: Simon Laws
>             Fix For: Cpp-current
>
>         Attachments: cdata.txt
>
>
> The SDO C++ implement ignores CDATA sections that appear in input XML 
> documents and provides no facilities for constructing CDATA sections through 
> the API

-- 
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]

Reply via email to