Re: [Simple-support] Possible to to parse Text with child Element?
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2011-01-19 10:41:17
|
Hi, Currently it is not possible to use annotations to acquire free text like this. The @Text annotation can be used to grab text between elements. But this is only possible when there are no child elements. If you use a Visitor you can grab the text with OutputNode.getValue. Niall --- On Tue, 18/1/11, Casey Rodgers <cas...@gm...> wrote: From: Casey Rodgers <cas...@gm...> Subject: [Simple-support] Possible to to parse Text with child Element? To: sim...@li... Received: Tuesday, 18 January, 2011, 9:38 AM Hello, Is it possible to to parse XML containing text AND child elements? For example, is the following serializable? <element> THIS IS SOME TEXT <child-element> ..etc.. </child-element></element> Is it possible to parse this XML using SimpleXml? -- Casey Rodgers -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl -----Inline Attachment Follows----- _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |