The mixed content can be accessed using SDO Sequence (property/value pairs). I observed that for pure text, the corresponding property is null.

Thanks,
Raymond

----- Original Message ----- From: "Paul Tomsic" <[EMAIL PROTECTED]>
To: <tuscany-dev@ws.apache.org>
Sent: Tuesday, July 11, 2006 10:57 AM
Subject: best way to handle mixed content?


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]



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

Reply via email to