That should actually be 

    sampleText.getSequence()

that is, no arguments to the getSequence call. The getSequenced("mixed") 
API is Tuscany-specific and the SDO spec is considering deprecating it 
(and the other getSequence methods that take an argument) from the 
DataObject API.

The "proper" SDO API for accessing the content of a mixed type is to call 
getSequence() and then iterate through the property/value entries, as 
Raymond said in his reply.

Frank.

"Yang ZHONG" <[EMAIL PROTECTED]> wrote on 07/11/2006 02:05:19 
PM:

> Maybe you can try sampleText.getSequence( "mixed")
> 
> On 7/11/06, Paul Tomsic <[EMAIL PROTECTED]> wrote:
> >
> > Given the following XML, what would be the best way to
> > retrieve all of the contents within an element that
> > contains mixed content?
> >
> > for instance, in this XML, i'd like to retrieve
> > everything contained within the 'sampleText' node:
> >
> > "Testing sample<em>text</em>with example
> > of<strong>mixed<em>content</em></strong>"
> >
> >
> > here's the XML...
> >
> >
> > ------------------------
> > <?xml version="1.0" encoding="UTF-8"?>
> > <foowrapper
> > xmlns="http://www.example.com/mixedcontent";
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > xsi:schemaLocation="http://www.example.com/mixedcontent
> > foo.xsd">
> >        <sampleText>Testing sample
> >        <em>text</em>
> >        with example of
> >        <strong>mixed
> >            <em>content</em>
> >                </strong>
> >        </sampleText>
> > </foowrapper>
> >
> >
> > ------------------------
> >
> >
> > thanks
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> 
> Yang ZHONG


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to