Hi, I'm having issues trying to convert this:
"<top> text1 <child> text2 <other> text3 </other> text4 </child> text5
</top>"
to:
"<top> text1 text2 <other> text3 </other> text4 text5 </top>"

My goal is to remove a xml tag, in this case the "child" tag.

But I want to keep the contents. Is this possible?

To set you in context, I'm working with two text-to-speech libraries, one of
them has full  http://www.w3.org/TR/speech-synthesis/ SSML  support while
the other has only partial support.

There are some tags, like <prosody> tag, which are not supported by the
second library.

So when I receive this text:
"Test sentence with <prosody volume="88.9">Modified volume</prosody>."

I should remove those tags so that the second library says the sentence
properly (without the volume change).


-- 
View this message in context: 
http://old.nabble.com/Remove-children-preserving-text-tp31165493p31165493.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.

Reply via email to