So you just want the raw XML? If you don't want it parsed into an object 
model, why are you using SDO in the first place? 

You can get an XML serialization of a DataObject by calling 
XMLHelper.save().

Frank.

Paul Tomsic <[EMAIL PROTECTED]> wrote on 07/11/2006 02:29:00 PM:

> but w/ the Sequence that's returned, i've got a
> BasicSequence.  Iterating across it, and doing
> sequence.getValue(0) (or 1,2,3, etc) you still need to
> handle the sub-elements that are not TEXT type nodes,
> right?
> Seems like there should be an easier way to do this.
> Does anyone have an example of retrieving mixed
> content?
> 
> 
> --- Yang ZHONG <[EMAIL PROTECTED]> wrote:
> 
> > 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]
> 


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

Reply via email to