<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-23759</id>
	<title>Nabble - Simple XML Serialization</title>
	<updated>2009-11-23T02:21:07Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Simple-XML-Serialization-f23759.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Simple-XML-Serialization-f23759.html" />
	<subtitle type="html">&lt;a href=&quot;http://simple.sourceforge.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple&lt;/a&gt;&amp;nbsp;is a high performance XML serialization and configuration framework for Java. Its goal is to provide an XML framework that enables rapid development of XML configuration and communication systems. This framework aids the development of XML systems with minimal effort and reduced errors. It offers full object serialization and deserialization, maintaining each reference encountered. In essence it is similar to C# XML serialization for the Java platform, but offers additional features for interception and manipulation.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26475504</id>
	<title>Re: Proper parsing of InputStreams with encoding attribute in XML prologue.</title>
	<published>2009-11-23T02:21:07Z</published>
	<updated>2009-11-23T02:21:07Z</updated>
	<author>
		<name>Dawid Weiss-2</name>
	</author>
	<content type="html">Thanks. I really don't see how it could break things (unless you have
&lt;br&gt;a broken XML parser in Java, which may occasionally happen,
&lt;br&gt;unfortunately).
&lt;br&gt;&lt;br&gt;&amp;nbsp;I'll look into the public method you mentioned -- should do for us
&lt;br&gt;for the moment.
&lt;br&gt;&lt;br&gt;Dawid
&lt;br&gt;&lt;br&gt;On Mon, Nov 23, 2009 at 11:16 AM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475504&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;niall.gallagher@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I did not change the method for InputStream on this one, however I did add NodeBuilder.read(InputStream) to return an InputNode from the stream. I need to test a bit more before I change to this in the persister. It should be possible to use NodeBuilder.read(InputStream) to create an InputNode you can pass to the Persister.read(Class,InputNode) method. Ill try get it in for the next release.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Niall
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Niall Gallagher
&lt;br&gt;&amp;gt; RBS Global Banking &amp; Markets
&lt;br&gt;&amp;gt; Office: +44 2070851454
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Dawid Weiss [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475504&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dawid.weiss@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: 23 November 2009 10:13
&lt;br&gt;&amp;gt; To: GALLAGHER, Niall, GBM
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475504&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: [Simple-support] Proper parsing of InputStreams with encoding attribute in XML prologue.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi Niall,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I see a new version of Simple is out and, sadly, it does not contain this forced-UTF-8 patch. Is there any schedule on when this could be integrated? Our stuff sort of depends on this change and we'd hate to fork and maintain SimpleXML internally just for two lines of code...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Dawid
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Fri, Oct 30, 2009 at 10:04 AM,  &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475504&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;niall.gallagher@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Sounds good, ill add this in.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Niall Gallagher
&lt;br&gt;&amp;gt;&amp;gt; RBS Global Banking &amp; Markets
&lt;br&gt;&amp;gt;&amp;gt; Office: +44 7879498724
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt; From: Dawid Weiss [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475504&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dawid.weiss@...&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt; Sent: 29 October 2009 18:36
&lt;br&gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475504&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; Subject: [Simple-support] Proper parsing of InputStreams with encoding attribute in XML prologue.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi there,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; We are using SimpleXML in Carrot2 (Carrot2.org), it's great stuff, thanks.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; We would like to point at one potential issue that could be easily
&lt;br&gt;&amp;gt;&amp;gt; fixed: currently, the Persister class forces
&lt;br&gt;&amp;gt;&amp;gt; UTF-8 encoding on byte streams, which may not be correct (let's say the XML is provided by users and not generated by SimpleXML). The relevant section of Persister could be easily fixed to rely on the XML parser's character detection and decoding. So:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;    public &amp;lt;T&amp;gt; T read(Class&amp;lt;? extends T&amp;gt; type, InputStream source)
&lt;br&gt;&amp;gt;&amp;gt; throws Exception {
&lt;br&gt;&amp;gt;&amp;gt; -      return (T)read(type, source, &amp;quot;utf-8&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; +      return (T)read(type, NodeBuilder.read(source));
&lt;br&gt;&amp;gt;&amp;gt;    }
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; and then in NodeBuilder add a method that relies on the XML parser's decoding:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; +   public static InputNode read(InputStream source) throws Exception
&lt;br&gt;&amp;gt;&amp;gt; + {
&lt;br&gt;&amp;gt;&amp;gt; +      return read(factory.createXMLEventReader(source));
&lt;br&gt;&amp;gt;&amp;gt; +   }
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The entire patch against 2.1.4 is attached. We would appreciate if this could be integrated into the next version (or at least if NodeBuilder's read(XMLEventReader) could be made public to allow alternative parsing strategies):
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; private static InputNode read(XMLEventReader source) throws Exception
&lt;br&gt;&amp;gt;&amp;gt; {
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Dawid
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; **********************************************************************
&lt;br&gt;&amp;gt;&amp;gt; ************* The Royal Bank of Scotland plc. Registered in Scotland
&lt;br&gt;&amp;gt;&amp;gt; No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
&lt;br&gt;&amp;gt;&amp;gt; Authorised and regulated by the Financial Services Authority.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This e-mail message is confidential and for use by the addressee only.
&lt;br&gt;&amp;gt;&amp;gt; If the message is received by anyone other than the addressee, please
&lt;br&gt;&amp;gt;&amp;gt; return the message to the sender by replying to it and then delete the
&lt;br&gt;&amp;gt;&amp;gt; message from your computer. Internet e-mails are not necessarily
&lt;br&gt;&amp;gt;&amp;gt; secure. The Royal Bank of Scotland plc does not accept responsibility
&lt;br&gt;&amp;gt;&amp;gt; for changes made to this message after it was sent.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Whilst all reasonable care has been taken to avoid the transmission of
&lt;br&gt;&amp;gt;&amp;gt; viruses, it is the responsibility of the recipient to ensure that the
&lt;br&gt;&amp;gt;&amp;gt; onward transmission, opening or use of this message and any
&lt;br&gt;&amp;gt;&amp;gt; attachments will not adversely affect its systems or data. No
&lt;br&gt;&amp;gt;&amp;gt; responsibility is accepted by The Royal Bank of Scotland plc in this
&lt;br&gt;&amp;gt;&amp;gt; regard and the recipient should carry out such virus and other checks
&lt;br&gt;&amp;gt;&amp;gt; as it considers appropriate.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Visit our website at www.rbs.com
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; **********************************************************************
&lt;br&gt;&amp;gt;&amp;gt; *************
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475504&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proper-parsing-of-InputStreams-with-encoding-attribute-in-XML-prologue.-tp26118457p26475504.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26475438</id>
	<title>Re: Proper parsing of InputStreams with encoding attribute in XML prologue.</title>
	<published>2009-11-23T02:16:37Z</published>
	<updated>2009-11-23T02:16:37Z</updated>
	<author>
		<name>niall.gallagher</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I did not change the method for InputStream on this one, however I did add NodeBuilder.read(InputStream) to return an InputNode from the stream. I need to test a bit more before I change to this in the persister. It should be possible to use NodeBuilder.read(InputStream) to create an InputNode you can pass to the Persister.read(Class,InputNode) method. Ill try get it in for the next release.
&lt;br&gt;&lt;br&gt;Niall
&lt;br&gt;&lt;br&gt;&lt;br&gt;Niall Gallagher
&lt;br&gt;RBS Global Banking &amp; Markets
&lt;br&gt;Office: +44 2070851454 &amp;nbsp; 
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Dawid Weiss [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475438&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dawid.weiss@...&lt;/a&gt;] 
&lt;br&gt;Sent: 23 November 2009 10:13
&lt;br&gt;To: GALLAGHER, Niall, GBM
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475438&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;
&lt;br&gt;Subject: Re: [Simple-support] Proper parsing of InputStreams with encoding attribute in XML prologue.
&lt;br&gt;&lt;br&gt;Hi Niall,
&lt;br&gt;&lt;br&gt;I see a new version of Simple is out and, sadly, it does not contain this forced-UTF-8 patch. Is there any schedule on when this could be integrated? Our stuff sort of depends on this change and we'd hate to fork and maintain SimpleXML internally just for two lines of code...
&lt;br&gt;&lt;br&gt;Dawid
&lt;br&gt;&lt;br&gt;On Fri, Oct 30, 2009 at 10:04 AM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475438&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;niall.gallagher@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Sounds good, ill add this in.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Niall Gallagher
&lt;br&gt;&amp;gt; RBS Global Banking &amp; Markets
&lt;br&gt;&amp;gt; Office: +44 7879498724
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Dawid Weiss [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475438&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dawid.weiss@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: 29 October 2009 18:36
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475438&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [Simple-support] Proper parsing of InputStreams with encoding attribute in XML prologue.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi there,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We are using SimpleXML in Carrot2 (Carrot2.org), it's great stuff, thanks.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We would like to point at one potential issue that could be easily
&lt;br&gt;&amp;gt; fixed: currently, the Persister class forces
&lt;br&gt;&amp;gt; UTF-8 encoding on byte streams, which may not be correct (let's say the XML is provided by users and not generated by SimpleXML). The relevant section of Persister could be easily fixed to rely on the XML parser's character detection and decoding. So:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;    public &amp;lt;T&amp;gt; T read(Class&amp;lt;? extends T&amp;gt; type, InputStream source) 
&lt;br&gt;&amp;gt; throws Exception {
&lt;br&gt;&amp;gt; -      return (T)read(type, source, &amp;quot;utf-8&amp;quot;);
&lt;br&gt;&amp;gt; +      return (T)read(type, NodeBuilder.read(source));
&lt;br&gt;&amp;gt;    }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; and then in NodeBuilder add a method that relies on the XML parser's decoding:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; +   public static InputNode read(InputStream source) throws Exception 
&lt;br&gt;&amp;gt; + {
&lt;br&gt;&amp;gt; +      return read(factory.createXMLEventReader(source));
&lt;br&gt;&amp;gt; +   }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The entire patch against 2.1.4 is attached. We would appreciate if this could be integrated into the next version (or at least if NodeBuilder's read(XMLEventReader) could be made public to allow alternative parsing strategies):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; private static InputNode read(XMLEventReader source) throws Exception 
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Dawid
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; **********************************************************************
&lt;br&gt;&amp;gt; ************* The Royal Bank of Scotland plc. Registered in Scotland 
&lt;br&gt;&amp;gt; No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
&lt;br&gt;&amp;gt; Authorised and regulated by the Financial Services Authority.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This e-mail message is confidential and for use by the addressee only. 
&lt;br&gt;&amp;gt; If the message is received by anyone other than the addressee, please 
&lt;br&gt;&amp;gt; return the message to the sender by replying to it and then delete the 
&lt;br&gt;&amp;gt; message from your computer. Internet e-mails are not necessarily 
&lt;br&gt;&amp;gt; secure. The Royal Bank of Scotland plc does not accept responsibility 
&lt;br&gt;&amp;gt; for changes made to this message after it was sent.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Whilst all reasonable care has been taken to avoid the transmission of 
&lt;br&gt;&amp;gt; viruses, it is the responsibility of the recipient to ensure that the 
&lt;br&gt;&amp;gt; onward transmission, opening or use of this message and any 
&lt;br&gt;&amp;gt; attachments will not adversely affect its systems or data. No 
&lt;br&gt;&amp;gt; responsibility is accepted by The Royal Bank of Scotland plc in this 
&lt;br&gt;&amp;gt; regard and the recipient should carry out such virus and other checks 
&lt;br&gt;&amp;gt; as it considers appropriate.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Visit our website at www.rbs.com
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; **********************************************************************
&lt;br&gt;&amp;gt; *************
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475438&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proper-parsing-of-InputStreams-with-encoding-attribute-in-XML-prologue.-tp26118457p26475438.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26475407</id>
	<title>Re: Proper parsing of InputStreams with encoding attribute in XML prologue.</title>
	<published>2009-11-23T02:13:26Z</published>
	<updated>2009-11-23T02:13:26Z</updated>
	<author>
		<name>Dawid Weiss-2</name>
	</author>
	<content type="html">Hi Niall,
&lt;br&gt;&lt;br&gt;I see a new version of Simple is out and, sadly, it does not contain
&lt;br&gt;this forced-UTF-8 patch. Is there any schedule on when this could be
&lt;br&gt;integrated? Our stuff sort of depends on this change and we'd hate to
&lt;br&gt;fork and maintain SimpleXML internally just for two lines of code...
&lt;br&gt;&lt;br&gt;Dawid
&lt;br&gt;&lt;br&gt;On Fri, Oct 30, 2009 at 10:04 AM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475407&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;niall.gallagher@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Sounds good, ill add this in.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Niall Gallagher
&lt;br&gt;&amp;gt; RBS Global Banking &amp; Markets
&lt;br&gt;&amp;gt; Office: +44 7879498724
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Dawid Weiss [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475407&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dawid.weiss@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: 29 October 2009 18:36
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475407&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [Simple-support] Proper parsing of InputStreams with encoding attribute in XML prologue.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi there,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We are using SimpleXML in Carrot2 (Carrot2.org), it's great stuff, thanks.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We would like to point at one potential issue that could be easily
&lt;br&gt;&amp;gt; fixed: currently, the Persister class forces
&lt;br&gt;&amp;gt; UTF-8 encoding on byte streams, which may not be correct (let's say the XML is provided by users and not generated by SimpleXML). The relevant section of Persister could be easily fixed to rely on the XML parser's character detection and decoding. So:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;    public &amp;lt;T&amp;gt; T read(Class&amp;lt;? extends T&amp;gt; type, InputStream source) throws Exception {
&lt;br&gt;&amp;gt; -      return (T)read(type, source, &amp;quot;utf-8&amp;quot;);
&lt;br&gt;&amp;gt; +      return (T)read(type, NodeBuilder.read(source));
&lt;br&gt;&amp;gt;    }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; and then in NodeBuilder add a method that relies on the XML parser's decoding:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; +   public static InputNode read(InputStream source) throws Exception {
&lt;br&gt;&amp;gt; +      return read(factory.createXMLEventReader(source));
&lt;br&gt;&amp;gt; +   }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The entire patch against 2.1.4 is attached. We would appreciate if this could be integrated into the next version (or at least if NodeBuilder's read(XMLEventReader) could be made public to allow alternative parsing strategies):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; private static InputNode read(XMLEventReader source) throws Exception {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Dawid
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ***********************************************************************************
&lt;br&gt;&amp;gt; The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
&lt;br&gt;&amp;gt; Authorised and regulated by the Financial Services Authority.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This e-mail message is confidential and for use by the
&lt;br&gt;&amp;gt; addressee only. If the message is received by anyone other
&lt;br&gt;&amp;gt; than the addressee, please return the message to the sender
&lt;br&gt;&amp;gt; by replying to it and then delete the message from your
&lt;br&gt;&amp;gt; computer. Internet e-mails are not necessarily secure. The
&lt;br&gt;&amp;gt; Royal Bank of Scotland plc does not accept responsibility for
&lt;br&gt;&amp;gt; changes made to this message after it was sent.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Whilst all reasonable care has been taken to avoid the
&lt;br&gt;&amp;gt; transmission of viruses, it is the responsibility of the recipient to
&lt;br&gt;&amp;gt; ensure that the onward transmission, opening or use of this
&lt;br&gt;&amp;gt; message and any attachments will not adversely affect its
&lt;br&gt;&amp;gt; systems or data. No responsibility is accepted by The
&lt;br&gt;&amp;gt; Royal Bank of Scotland plc in this regard and the recipient should carry
&lt;br&gt;&amp;gt; out such virus and other checks as it considers appropriate.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Visit our website at www.rbs.com
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ***********************************************************************************
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26475407&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proper-parsing-of-InputStreams-with-encoding-attribute-in-XML-prologue.-tp26118457p26475407.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26339622</id>
	<title>Re: mixed content</title>
	<published>2009-11-13T08:45:48Z</published>
	<updated>2009-11-13T08:45:48Z</updated>
	<author>
		<name>Quirino Zagarese-2</name>
	</author>
	<content type="html">I implicitly gave that answer,&lt;br&gt;cause I knew you could not do anything else.&lt;br&gt;I&amp;#39;m sorry if I didn&amp;#39;t address the right issue.&lt;br&gt;Regards,&lt;br&gt;&lt;br&gt;Quirino&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/13  &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339622&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;niall.gallagher@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;



&lt;div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot; color=&quot;#0000ff&quot;&gt;Hi,&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot; color=&quot;#0000ff&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot; color=&quot;#0000ff&quot;&gt;Yes, if you just want the text, you can use CDATA (via 
@Text(data=true) or @Element(data=true) or just escape the XML 
characters.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot; color=&quot;#0000ff&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot; color=&quot;#0000ff&quot;&gt;Niall&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot; color=&quot;#0000ff&quot;&gt;&lt;/font&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot; color=&quot;#003481&quot;&gt;&lt;b&gt;Niall 
Gallagher&lt;/b&gt;&lt;/font&gt;&lt;br&gt;&lt;font face=&quot;Arial&quot; size=&quot;1&quot; color=&quot;#000000&quot;&gt;RBS Global 
Banking &amp;amp; Markets&lt;/font&gt;&lt;br&gt;&lt;font face=&quot;Arial&quot; size=&quot;1&quot; color=&quot;#000000&quot;&gt;Office: 
+44 2070851454 &lt;br&gt;&lt;/font&gt;&lt;br&gt;
&lt;div&gt; &lt;/div&gt;&lt;br&gt;
&lt;div dir=&quot;ltr&quot; lang=&quot;en-us&quot; align=&quot;left&quot;&gt;
&lt;hr&gt;
&lt;font face=&quot;Tahoma&quot; size=&quot;2&quot;&gt;&lt;b&gt;From:&lt;/b&gt; Quirino Zagarese 
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339622&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;quirino@...&lt;/a&gt;] &lt;br&gt;&lt;b&gt;Sent:&lt;/b&gt; 13 November 2009 
16:33&lt;br&gt;&lt;b&gt;To:&lt;/b&gt; Tim Jüchter&lt;br&gt;&lt;b&gt;Cc:&lt;/b&gt; 
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339622&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;&lt;br&gt;&lt;b&gt;Subject:&lt;/b&gt; Re: [Simple-support] 
mixed content&lt;br&gt;&lt;/font&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;
&lt;div&gt;&lt;/div&gt;Hi Tim,&lt;br&gt;if you want to put the whole content in a single String 
variable, you can use the @Text annotation, but I guess the only way&lt;br&gt;to make 
it work is to enclose the content in a CDATA section.&lt;br&gt;Kind 
regards,&lt;br&gt;&lt;br&gt;Quirino&lt;br&gt;&lt;br&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/13 Tim Jüchter &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339622&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tim.juechter@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hi,&lt;br&gt;&lt;br&gt;how 
  can to handle mixed content. For Example:&lt;br&gt;&lt;br&gt;&amp;lt;text&amp;gt;some text 
  &amp;lt;b&amp;gt;this is bold&amp;lt;/&amp;gt; and more text&amp;lt;/text&amp;gt;&lt;br&gt;&lt;br&gt;Kind 
  regards,&lt;br&gt;tim&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;Let 
  Crystal Reports handle the reporting - Free Crystal Reports 2008 
  30-Day&lt;br&gt;trial. Simplify your report design, integration and deployment - and 
  focus on&lt;br&gt;what you do best, core application coding. Discover what&amp;#39;s new 
  with&lt;br&gt;Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;Simple-support 
  mailing list&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339622&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Quirino Zagarese&lt;br&gt;&lt;br&gt;Italian OpenLaszlo Community 
 - &lt;a href=&quot;http://www.laszloitalia.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.laszloitalia.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;EU4RIA: 
Laszlo+Java, easily - &lt;a href=&quot;http://eu4ria.googlecode.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;eu4ria.googlecode.com&lt;/a&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;im&quot;&gt;&lt;pre&gt;***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority. 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The 
Royal Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 

Visit our website at &lt;a href=&quot;http://www.rbs.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.rbs.com&lt;/a&gt;

***********************************************************************************
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Quirino Zagarese&lt;br&gt;&lt;br&gt;Italian OpenLaszlo Community  - &lt;a href=&quot;http://www.laszloitalia.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.laszloitalia.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;EU4RIA: Laszlo+Java, easily - &lt;a href=&quot;http://eu4ria.googlecode.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eu4ria.googlecode.com&lt;/a&gt;&lt;br&gt;

&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339622&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mixed-content-tp26339304p26339622.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26339545</id>
	<title>Re: mixed content</title>
	<published>2009-11-13T08:41:13Z</published>
	<updated>2009-11-13T08:41:13Z</updated>
	<author>
		<name>niall.gallagher</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.2900.5880&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=815094016-13112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Hi,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=815094016-13112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=815094016-13112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Yes, if you just want the text, you can use CDATA (via 
@Text(data=true) or @Element(data=true) or just escape the XML 
characters.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=815094016-13112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=815094016-13112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Niall&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;FONT face=Arial color=#003481 size=2&gt;&lt;STRONG&gt;Niall 
Gallagher&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face=Arial color=#000000 size=1&gt;RBS Global 
Banking &amp;amp; Markets&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face=Arial color=#000000 size=1&gt;Office: 
+44 2070851454 &lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;!--eMS5.0.5.D10M.11Y.2009--&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR&gt;
&lt;DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left&gt;
&lt;HR tabIndex=-1&gt;
&lt;FONT face=Tahoma size=2&gt;&lt;B&gt;From:&lt;/B&gt; Quirino Zagarese 
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339545&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;quirino@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 13 November 2009 
16:33&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; Tim Jüchter&lt;BR&gt;&lt;B&gt;Cc:&lt;/B&gt; 
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339545&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; Re: [Simple-support] 
mixed content&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;Hi Tim,&lt;BR&gt;if you want to put the whole content in a single String 
variable, you can use the @Text annotation, but I guess the only way&lt;BR&gt;to make 
it work is to enclose the content in a CDATA section.&lt;BR&gt;Kind 
regards,&lt;BR&gt;&lt;BR&gt;Quirino&lt;BR&gt;&lt;BR&gt;
&lt;DIV class=gmail_quote&gt;2009/11/13 Tim Jüchter &lt;SPAN dir=ltr&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339545&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tim.juechter@...&lt;/a&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR&gt;
&lt;BLOCKQUOTE class=gmail_quote style=&quot;PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid&quot;&gt;Hi,&lt;BR&gt;&lt;BR&gt;how 
  can to handle mixed content. For Example:&lt;BR&gt;&lt;BR&gt;&amp;lt;text&amp;gt;some text 
  &amp;lt;b&amp;gt;this is bold&amp;lt;/&amp;gt; and more text&amp;lt;/text&amp;gt;&lt;BR&gt;&lt;BR&gt;Kind 
  regards,&lt;BR&gt;tim&lt;BR&gt;&lt;BR&gt;------------------------------------------------------------------------------&lt;BR&gt;Let 
  Crystal Reports handle the reporting - Free Crystal Reports 2008 
  30-Day&lt;BR&gt;trial. Simplify your report design, integration and deployment - and 
  focus on&lt;BR&gt;what you do best, core application coding. Discover what's new 
  with&lt;BR&gt;Crystal Reports now. &amp;nbsp;&lt;A href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/A&gt;&lt;BR&gt;_______________________________________________&lt;BR&gt;Simple-support 
  mailing list&lt;BR&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339545&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;&lt;BR&gt;&lt;A href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=_blank rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/A&gt;&lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;BR clear=all&gt;&lt;BR&gt;-- &lt;BR&gt;Quirino Zagarese&lt;BR&gt;&lt;BR&gt;Italian OpenLaszlo Community 
&amp;nbsp;- &lt;A href=&quot;http://www.laszloitalia.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.laszloitalia.org&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;EU4RIA: 
Laszlo+Java, easily - &lt;A href=&quot;http://eu4ria.googlecode.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eu4ria.googlecode.com&lt;/A&gt;&lt;BR&gt;&lt;pre&gt;
***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority. 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The 
Royal Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 

Visit our website at www.rbs.com

***********************************************************************************
&lt;/pre&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339545&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mixed-content-tp26339304p26339545.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26339413</id>
	<title>Re: mixed content</title>
	<published>2009-11-13T08:33:11Z</published>
	<updated>2009-11-13T08:33:11Z</updated>
	<author>
		<name>niall.gallagher</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I am afraid that is not possible for a couple of reasons. Firstly how would you map it to a Java object. Where would &amp;quot;some text&amp;quot; go, would &amp;quot;this is bold&amp;quot; be assigned to another variable. 
&lt;br&gt;&lt;br&gt;Niall &amp;nbsp;
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Tim Jüchter [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339413&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tim.juechter@...&lt;/a&gt;] 
&lt;br&gt;Sent: 13 November 2009 16:04
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339413&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;
&lt;br&gt;Subject: [Simple-support] mixed content
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;how can to handle mixed content. For Example:
&lt;br&gt;&lt;br&gt;&amp;lt;text&amp;gt;some text &amp;lt;b&amp;gt;this is bold&amp;lt;/&amp;gt; and more text&amp;lt;/text&amp;gt;
&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;tim
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&amp;nbsp;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339413&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;&lt;br&gt;***********************************************************************************
&lt;br&gt;The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
&lt;br&gt;Authorised and regulated by the Financial Services Authority. 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;This e-mail message is confidential and for use by the 
&lt;br&gt;addressee only. If the message is received by anyone other 
&lt;br&gt;than the addressee, please return the message to the sender 
&lt;br&gt;by replying to it and then delete the message from your 
&lt;br&gt;computer. Internet e-mails are not necessarily secure. The 
&lt;br&gt;Royal Bank of Scotland plc does not accept responsibility for 
&lt;br&gt;changes made to this message after it was sent. 
&lt;br&gt;&lt;br&gt;Whilst all reasonable care has been taken to avoid the 
&lt;br&gt;transmission of viruses, it is the responsibility of the recipient to 
&lt;br&gt;ensure that the onward transmission, opening or use of this 
&lt;br&gt;message and any attachments will not adversely affect its 
&lt;br&gt;systems or data. No responsibility is accepted by The 
&lt;br&gt;Royal Bank of Scotland plc in this regard and the recipient should carry 
&lt;br&gt;out such virus and other checks as it considers appropriate. 
&lt;br&gt;&lt;br&gt;Visit our website at www.rbs.com
&lt;br&gt;&lt;br&gt;***********************************************************************************
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339413&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mixed-content-tp26339304p26339413.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26339406</id>
	<title>Re: mixed content</title>
	<published>2009-11-13T08:32:37Z</published>
	<updated>2009-11-13T08:32:37Z</updated>
	<author>
		<name>Quirino Zagarese-2</name>
	</author>
	<content type="html">Hi Tim,&lt;br&gt;if you want to put the whole content in a single String variable, you can use the @Text annotation, but I guess the only way&lt;br&gt;to make it work is to enclose the content in a CDATA section.&lt;br&gt;Kind regards,&lt;br&gt;&lt;br&gt;
Quirino&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/13 Tim Jüchter &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339406&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tim.juechter@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi,&lt;br&gt;
&lt;br&gt;
how can to handle mixed content. For Example:&lt;br&gt;
&lt;br&gt;
&amp;lt;text&amp;gt;some text &amp;lt;b&amp;gt;this is bold&amp;lt;/&amp;gt; and more text&amp;lt;/text&amp;gt;&lt;br&gt;
&lt;br&gt;
Kind regards,&lt;br&gt;
tim&lt;br&gt;
&lt;br&gt;
------------------------------------------------------------------------------&lt;br&gt;
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day&lt;br&gt;
trial. Simplify your report design, integration and deployment - and focus on&lt;br&gt;
what you do best, core application coding. Discover what&amp;#39;s new with&lt;br&gt;
Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
Simple-support mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339406&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Quirino Zagarese&lt;br&gt;&lt;br&gt;Italian OpenLaszlo Community  - &lt;a href=&quot;http://www.laszloitalia.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.laszloitalia.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;EU4RIA: Laszlo+Java, easily - &lt;a href=&quot;http://eu4ria.googlecode.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eu4ria.googlecode.com&lt;/a&gt;&lt;br&gt;

&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339406&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mixed-content-tp26339304p26339406.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26339383</id>
	<title>mixed content</title>
	<published>2009-11-13T08:09:14Z</published>
	<updated>2009-11-13T08:09:14Z</updated>
	<author>
		<name>ppank</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;how can to handle mixed content. For Example:
&lt;br&gt;&lt;br&gt;&amp;lt;text&amp;gt;some text &amp;lt;b&amp;gt;this is bold&amp;lt;/&amp;gt; and more text&amp;lt;/text&amp;gt;
&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;tim
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339383&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mixed-content-tp26339383p26339383.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26339304</id>
	<title>mixed content</title>
	<published>2009-11-13T08:04:08Z</published>
	<updated>2009-11-13T08:04:08Z</updated>
	<author>
		<name>ppank</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;how can to handle mixed content. For Example:
&lt;br&gt;&lt;br&gt;&amp;lt;text&amp;gt;some text &amp;lt;b&amp;gt;this is bold&amp;lt;/&amp;gt; and more text&amp;lt;/text&amp;gt;
&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;tim
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339304&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mixed-content-tp26339304p26339304.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26317211</id>
	<title>Re: Can Simple export the Metadata of my class?</title>
	<published>2009-11-12T03:37:58Z</published>
	<updated>2009-11-12T03:37:58Z</updated>
	<author>
		<name>niall.gallagher</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.2900.5880&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=521413711-12112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Hi,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=521413711-12112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=521413711-12112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Simple currently does not support XSD.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=521413711-12112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=521413711-12112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Niall&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;FONT face=Arial color=#003481 size=2&gt;&lt;STRONG&gt;Niall 
Gallagher&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face=Arial color=#000000 size=1&gt;RBS Global 
Banking &amp;amp; Markets&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face=Arial color=#000000 size=1&gt;Office: 
+44 2070851454 &lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;!--eMS5.0.5.D10M.11Y.2009--&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR&gt;
&lt;DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left&gt;
&lt;HR tabIndex=-1&gt;
&lt;FONT face=Tahoma size=2&gt;&lt;B&gt;From:&lt;/B&gt; Ahmad Qatramiz 
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26317211&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ahmadqsoftnet@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 11 November 2009 
14:03&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26317211&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; 
[Simple-support] Can Simple export the Metadata of my 
class?&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr&gt;Can Simple export the Metadata of my class as an XSD 
file?&lt;BR&gt;&lt;BR&gt;Thank you for your help&lt;BR&gt;&lt;/DIV&gt;&lt;pre&gt;
***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority. 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The 
Royal Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 

Visit our website at www.rbs.com

***********************************************************************************
&lt;/pre&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26317211&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can-Simple-export-the-Metadata-of-my-class--tp26301744p26317211.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26301744</id>
	<title>Can Simple export the Metadata of my class?</title>
	<published>2009-11-11T06:02:31Z</published>
	<updated>2009-11-11T06:02:31Z</updated>
	<author>
		<name>skystar3</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;Can Simple export the Metadata of my class as an XSD file?&lt;br&gt;&lt;br&gt;Thank you for your help&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26301744&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can-Simple-export-the-Metadata-of-my-class--tp26301744p26301744.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26277246</id>
	<title>Re: Serializing to and from Element</title>
	<published>2009-11-09T18:13:54Z</published>
	<updated>2009-11-09T18:13:54Z</updated>
	<author>
		<name>Rob Griffin</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:x=&quot;urn:schemas-microsoft-com:office:excel&quot; xmlns:p=&quot;urn:schemas-microsoft-com:office:powerpoint&quot; xmlns:a=&quot;urn:schemas-microsoft-com:office:access&quot; xmlns:dt=&quot;uuid:C2F41010-65B3-11d1-A29F-00AA00C14882&quot; xmlns:s=&quot;uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882&quot; xmlns:rs=&quot;urn:schemas-microsoft-com:rowset&quot; xmlns:Z=&quot;urn:schemas-microsoft-com:&quot; xmlns:b=&quot;urn:schemas-microsoft-com:office:publisher&quot; xmlns:ss=&quot;urn:schemas-microsoft-com:office:spreadsheet&quot; xmlns:c=&quot;urn:schemas-microsoft-com:office:component:spreadsheet&quot; xmlns:odc=&quot;urn:schemas-microsoft-com:office:odc&quot; xmlns:oa=&quot;urn:schemas-microsoft-com:office:activation&quot; xmlns:html=&quot;http://www.w3.org/TR/REC-html40&quot; xmlns:q=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:rtc=&quot;http://microsoft.com/officenet/conferencing&quot; xmlns:D=&quot;DAV:&quot; xmlns:Repl=&quot;http://schemas.microsoft.com/repl/&quot; xmlns:mt=&quot;http://schemas.microsoft.com/sharepoint/soap/meetings/&quot; xmlns:x2=&quot;http://schemas.microsoft.com/office/excel/2003/xml&quot; xmlns:ppda=&quot;http://www.passport.com/NameSpace.xsd&quot; xmlns:ois=&quot;http://schemas.microsoft.com/sharepoint/soap/ois/&quot; xmlns:dir=&quot;http://schemas.microsoft.com/sharepoint/soap/directory/&quot; xmlns:ds=&quot;http://www.w3.org/2000/09/xmldsig#&quot; xmlns:dsp=&quot;http://schemas.microsoft.com/sharepoint/dsp&quot; xmlns:udc=&quot;http://schemas.microsoft.com/data/udc&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:sub=&quot;http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/&quot; xmlns:ec=&quot;http://www.w3.org/2001/04/xmlenc#&quot; xmlns:sp=&quot;http://schemas.microsoft.com/sharepoint/&quot; xmlns:sps=&quot;http://schemas.microsoft.com/sharepoint/soap/&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:udcs=&quot;http://schemas.microsoft.com/data/udc/soap&quot; xmlns:udcxf=&quot;http://schemas.microsoft.com/data/udc/xmlfile&quot; xmlns:udcp2p=&quot;http://schemas.microsoft.com/data/udc/parttopart&quot; xmlns:wf=&quot;http://schemas.microsoft.com/sharepoint/soap/workflow/&quot; xmlns:dsss=&quot;http://schemas.microsoft.com/office/2006/digsig-setup&quot; xmlns:dssi=&quot;http://schemas.microsoft.com/office/2006/digsig&quot; xmlns:mdssi=&quot;http://schemas.openxmlformats.org/package/2006/digital-signature&quot; xmlns:mver=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns:mrels=&quot;http://schemas.openxmlformats.org/package/2006/relationships&quot; xmlns:spwp=&quot;http://microsoft.com/sharepoint/webpartpages&quot; xmlns:ex12t=&quot;http://schemas.microsoft.com/exchange/services/2006/types&quot; xmlns:ex12m=&quot;http://schemas.microsoft.com/exchange/services/2006/messages&quot; xmlns:pptsl=&quot;http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/&quot; xmlns:spsl=&quot;http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService&quot; xmlns:st=&quot;&amp;#1;&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-AU link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Niall,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;I think the Serializer interface is missing some methods. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;public &amp;lt;T&amp;gt; T read(java.lang.Class&amp;lt;? extends T&amp;gt; type,
InputNode source) &amp;nbsp;throws java.lang.Exception&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;is in Persister but not in Serializer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Ditto:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;public void write(java.lang.Object source, OutputNode root) throws
java.lang.Exception&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;That means for the moment I have to change my code from&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Serializer serializer = new Persister();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;To&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&amp;nbsp; Persister persister = new Persister();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;in order to implement reading from and writing to an Element.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Thanks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Rob Griffin.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div&gt;

&lt;div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;span lang=EN-US style='font-size:10.0pt;font-family:
&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span lang=EN-US style='font-size:10.0pt;
font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277246&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;niall.gallagher@...&lt;/a&gt;
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277246&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;niall.gallagher@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Tuesday, 20 October 2009 7:30 PM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; Rob Griffin; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277246&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; RE: Serializing to and from Element&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;
color:blue'&gt;Hi,&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;
color:blue'&gt;Simple started off using DOM. It progressed to 1.0 before I wrote a
DOM like wrapper around StAX. The org.simpleframework.xml.stream package is
100% interfaces, which is very similar to DOM. I think all you need to do is
implement the InputNode and OutputNode around a org.w3c.dom.Element as well as
Position, which is easy. It should be a very easy job, I have not had time to
do it myself. But I implemented org.simpleframework.xml.stream for this exact
issue.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;
color:blue'&gt;Niall&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;
color:blue'&gt;&amp;nbsp;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;div class=MsoNormal align=center style='text-align:center'&gt;

&lt;hr size=2 width=&quot;100%&quot; align=center&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal style='margin-bottom:12.0pt'&gt;&lt;b&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt; Rob Griffin [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277246&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rob.griffin@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; 20 October 2009 01:18&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277246&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; [Simple-support] Serializing to and from Element&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;Niall,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;We
need a way of serializing to and from an Element instead of a steam because we
embed our object&amp;#8217;s XML inside other XML.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;Can
Simple do this as it stands? &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;Thanks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;Rob
Griffin&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;Quest
Software&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;&lt;a href=&quot;http://www.quest.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;span style='font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;www.quest.com&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;pre&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;***********************************************************************************&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;Authorised and regulated by the Financial Services Authority. &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;This e-mail message is confidential and for use by the &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;addressee only. If the message is received by anyone other &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;than the addressee, please return the message to the sender &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;by replying to it and then delete the message from your &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;computer. Internet e-mails are not necessarily secure. The &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;Royal Bank of Scotland plc does not accept responsibility for &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;changes made to this message after it was sent. &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;Whilst all reasonable care has been taken to avoid the &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;transmission of viruses, it is the responsibility of the recipient to &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;ensure that the onward transmission, opening or use of this &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;message and any attachments will not adversely affect its &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;systems or data. No responsibility is accepted by The &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;Royal Bank of Scotland plc in this regard and the recipient should carry &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;out such virus and other checks as it considers appropriate. &lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;Visit our website at www.rbs.com&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/pre&gt;&lt;pre&gt;***********************************************************************************&lt;o:p&gt;&lt;/o:p&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26277246&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Serializing-to-and-from-Element-tp25968014p26277246.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26274772</id>
	<title>Re: Parsing JavaBean to XML and Viceversa</title>
	<published>2009-11-09T14:20:52Z</published>
	<updated>2009-11-09T14:20:52Z</updated>
	<author>
		<name>Quirino Zagarese-2</name>
	</author>
	<content type="html">Hi,&lt;br&gt;you just need to use write and read methods from the Persister class.&lt;br&gt;&lt;a href=&quot;http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php#start&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;This&lt;/a&gt; part of tutorial explains hot to get XML from a JavaBean;&lt;br&gt;
&lt;a href=&quot;http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php#deserialize&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt; one, instead, explains how to deserialize XML to get a JavaBean.&lt;br&gt;Hope this helps!&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/4 SivaKumarl &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26274772&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sivakumarl@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;br&gt;
Hi Friends,&lt;br&gt;
          I need to parse JavaBean to XML and XML to JavaBean, kindly&lt;br&gt;
suggest me the best API to parse&lt;br&gt;
&lt;br&gt;
Thanks in Advance&lt;br&gt;
----------------&lt;br&gt;
Siva&lt;br&gt;
--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://old.nabble.com/Parsing-JavaBean-to-XML-and-Viceversa-tp26190782p26190782.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Parsing-JavaBean-to-XML-and-Viceversa-tp26190782p26190782.html&lt;/a&gt;&lt;br&gt;

Sent from the Simple XML Serialization mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
------------------------------------------------------------------------------&lt;br&gt;
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day&lt;br&gt;
trial. Simplify your report design, integration and deployment - and focus on&lt;br&gt;
what you do best, core application coding. Discover what&amp;#39;s new with&lt;br&gt;
Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
Simple-support mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26274772&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Quirino Zagarese&lt;br&gt;&lt;br&gt;Italian OpenLaszlo Community  - &lt;a href=&quot;http://www.laszloitalia.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.laszloitalia.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;EU4RIA: Laszlo+Java, easily - &lt;a href=&quot;http://eu4ria.googlecode.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eu4ria.googlecode.com&lt;/a&gt;&lt;br&gt;

&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26274772&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Parsing-JavaBean-to-XML-and-Viceversa-tp26190782p26274772.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26266897</id>
	<title>Re: Google App Engine support</title>
	<published>2009-11-09T05:35:51Z</published>
	<updated>2009-11-09T05:35:51Z</updated>
	<author>
		<name>Jeremy Blythe</name>
	</author>
	<content type="html">Excellent. Any idea when the next release will be? :)&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 9, 2009 at 9:47 AM,  &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26266897&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;niall.gallagher@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;



&lt;div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;Hi,&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;This sounds like a reasonable fix, ill ensure to add it in 
to the next release. &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;Thanks,&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot;&gt;&lt;span&gt;&lt;font color=&quot;#0000ff&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;Niall&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;&lt;font color=&quot;#003481&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;b&gt;Niall 
Gallagher&lt;/b&gt;&lt;/font&gt;&lt;br&gt;&lt;font color=&quot;#000000&quot; face=&quot;Arial&quot; size=&quot;1&quot;&gt;RBS Global 
Banking &amp;amp; Markets&lt;/font&gt;&lt;br&gt;&lt;font color=&quot;#000000&quot; face=&quot;Arial&quot; size=&quot;1&quot;&gt;Office: 
+44 2070851454 &lt;br&gt;&lt;/font&gt;&lt;br&gt;
&lt;div&gt; &lt;/div&gt;&lt;br&gt;
&lt;div dir=&quot;ltr&quot; align=&quot;left&quot; lang=&quot;en-us&quot;&gt;
&lt;hr&gt;
&lt;font face=&quot;Tahoma&quot; size=&quot;2&quot;&gt;&lt;b&gt;From:&lt;/b&gt; Jeremy Blythe 
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26266897&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeremyblythe@...&lt;/a&gt;] &lt;br&gt;&lt;b&gt;Sent:&lt;/b&gt; 08 November 2009 
19:47&lt;br&gt;&lt;b&gt;To:&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26266897&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;&lt;br&gt;&lt;b&gt;Subject:&lt;/b&gt; 
[Simple-support] Google App Engine support&lt;br&gt;&lt;/font&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;
&lt;div&gt;&lt;/div&gt;Google App Engine has various restrictions which hamper some 
frameworks. JAXB cannot be used on GAE because it uses many clasees which are 
not in the &amp;quot;whitelist&amp;quot;. Simple however, works really well and causes no problems 
in the Local environment. However, when I deployed this to Google I was hit by 
the &lt;a href=&quot;http://code.google.com/appengine/docs/java/runtime.html#The_Sandbox&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;Sandbox 
limitations&lt;/a&gt; for Reflection. When Simple scans your classes to build its 
&amp;quot;schema&amp;quot; it calls &lt;a href=&quot;http://java.sun.com/javase/6/docs/api/java/lang/reflect/AccessibleObject.html#setAccessible%28boolean%29&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;setAccessible(true)&lt;/a&gt; 
on every method and constructor it finds all the way up the hierarchy to Object. 
This violates the sandbox restriction: &amp;quot;An application cannot reflect against 
any other classes not belonging to itself, and it can not use the 
&lt;code&gt;setAccessible()&lt;/code&gt; method to circumvent these restrictions.&amp;quot; App 
Engine throws a SecurityException when you try to call setAccessible(true) on 
one of its classes.&lt;br&gt;&lt;br&gt;For my purposes (and probably the majority case?) I 
do not need to serialize or deserialize to any non-public method of any 
superclasses other than my own. So given this I decided to absorb any 
SecurityExceptions thrown during the scanning process thus leaving those methods 
out of the &amp;quot;schema&amp;quot;. Two minor changes are required to the source. The scan 
methods in org.simpleframework.xml.core.ClassScanner and 
org.simpleframework.xml.core.ConstructrorScanner both need a try..catch block 
added like so:&lt;br&gt;&lt;pre&gt;//ClassScanner&lt;br&gt;   private void scan(Class real, Class type) throws Exception {&lt;br&gt;      Method[] method = type.getDeclaredMethods();&lt;br&gt;&lt;br&gt;      for(int i = 0; i &amp;lt; method.length; i++) {&lt;br&gt;         Method next = method[i];&lt;br&gt;

         try { &lt;br&gt;          if(!next.isAccessible()) {&lt;br&gt;             next.setAccessible(true);&lt;br&gt;          }&lt;br&gt;          scan(next);&lt;br&gt;        } catch (SecurityException e) {&lt;br&gt;   // Absorb this&lt;br&gt;        }&lt;br&gt;&lt;br&gt;

      }     &lt;br&gt;   }&lt;br&gt;&lt;br&gt;//ConstructorScanner&lt;br&gt;   private void scan(Class type) throws Exception {&lt;br&gt;      Constructor[] array = type.getDeclaredConstructors();&lt;br&gt;      &lt;br&gt;      for(Constructor factory: array){&lt;br&gt;

         ClassMap map = new ClassMap(type);&lt;br&gt;         &lt;br&gt;         try {&lt;br&gt;          if(!factory.isAccessible()) {&lt;br&gt;             factory.setAccessible(true);&lt;br&gt;          }&lt;br&gt;          scan(factory, map);&lt;br&gt;         } catch (SecurityException e) {&lt;br&gt;

   // Absorb this&lt;br&gt;         }&lt;br&gt;          &lt;br&gt;      } &lt;br&gt;   }&lt;br&gt;&lt;/pre&gt;This 
works well now in the Local and Deployed environments. Perhaps Simple would 
benefit from a mode or an option on the @Root annotation to specify the depth of 
class scanning as an alternative to this work-around? &lt;br&gt;&lt;br&gt;It would be good 
to see Simple as the XML Serialization framework of choice for Google App Engine 
projects!&lt;br&gt;&lt;br&gt;I would be happy to contribute changes if you think this would 
be appropriate.&lt;br&gt;&lt;br&gt;Jeremy.&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;pre&gt;***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority. 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The 
Royal Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 

Visit our website at &lt;a href=&quot;http://www.rbs.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.rbs.com&lt;/a&gt;

***********************************************************************************
&lt;/pre&gt;&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26266897&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Google-App-Engine-support-tp26257223p26266897.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26263612</id>
	<title>Re: Google App Engine support</title>
	<published>2009-11-09T01:47:55Z</published>
	<updated>2009-11-09T01:47:55Z</updated>
	<author>
		<name>niall.gallagher</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.2900.5880&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=583314709-09112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Hi,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=583314709-09112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=583314709-09112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;This sounds like a reasonable fix, ill ensure to add it in 
to the next release. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=583314709-09112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=583314709-09112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Thanks,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=583314709-09112009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Niall&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;FONT face=Arial color=#003481 size=2&gt;&lt;STRONG&gt;Niall 
Gallagher&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face=Arial color=#000000 size=1&gt;RBS Global 
Banking &amp;amp; Markets&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face=Arial color=#000000 size=1&gt;Office: 
+44 2070851454 &lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;!--eMS5.0.5.D9M.11Y.2009--&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR&gt;
&lt;DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left&gt;
&lt;HR tabIndex=-1&gt;
&lt;FONT face=Tahoma size=2&gt;&lt;B&gt;From:&lt;/B&gt; Jeremy Blythe 
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263612&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeremyblythe@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 08 November 2009 
19:47&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263612&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; 
[Simple-support] Google App Engine support&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;Google App Engine has various restrictions which hamper some 
frameworks. JAXB cannot be used on GAE because it uses many clasees which are 
not in the &quot;whitelist&quot;. Simple however, works really well and causes no problems 
in the Local environment. However, when I deployed this to Google I was hit by 
the &lt;A href=&quot;http://code.google.com/appengine/docs/java/runtime.html#The_Sandbox&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Sandbox 
limitations&lt;/A&gt; for Reflection. When Simple scans your classes to build its 
&quot;schema&quot; it calls &lt;A href=&quot;http://java.sun.com/javase/6/docs/api/java/lang/reflect/AccessibleObject.html#setAccessible%28boolean%29&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;setAccessible(true)&lt;/A&gt; 
on every method and constructor it finds all the way up the hierarchy to Object. 
This violates the sandbox restriction: &quot;An application cannot reflect against 
any other classes not belonging to itself, and it can not use the 
&lt;CODE&gt;setAccessible()&lt;/CODE&gt; method to circumvent these restrictions.&quot; App 
Engine throws a SecurityException when you try to call setAccessible(true) on 
one of its classes.&lt;BR&gt;&lt;BR&gt;For my purposes (and probably the majority case?) I 
do not need to serialize or deserialize to any non-public method of any 
superclasses other than my own. So given this I decided to absorb any 
SecurityExceptions thrown during the scanning process thus leaving those methods 
out of the &quot;schema&quot;. Two minor changes are required to the source. The scan 
methods in org.simpleframework.xml.core.ClassScanner and 
org.simpleframework.xml.core.ConstructrorScanner both need a try..catch block 
added like so:&lt;BR&gt;&lt;PRE&gt;//ClassScanner&lt;BR&gt;   private void scan(Class real, Class type) throws Exception {&lt;BR&gt;      Method[] method = type.getDeclaredMethods();&lt;BR&gt;&lt;BR&gt;      for(int i = 0; i &amp;lt; method.length; i++) {&lt;BR&gt;         Method next = method[i];&lt;BR&gt;
         try { &lt;BR&gt;          if(!next.isAccessible()) {&lt;BR&gt;             next.setAccessible(true);&lt;BR&gt;          }&lt;BR&gt;          scan(next);&lt;BR&gt;        } catch (SecurityException e) {&lt;BR&gt;   // Absorb this&lt;BR&gt;        }&lt;BR&gt;&lt;BR&gt;
      }     &lt;BR&gt;   }&lt;BR&gt;&lt;BR&gt;//ConstructorScanner&lt;BR&gt;   private void scan(Class type) throws Exception {&lt;BR&gt;      Constructor[] array = type.getDeclaredConstructors();&lt;BR&gt;      &lt;BR&gt;      for(Constructor factory: array){&lt;BR&gt;
         ClassMap map = new ClassMap(type);&lt;BR&gt;         &lt;BR&gt;         try {&lt;BR&gt;          if(!factory.isAccessible()) {&lt;BR&gt;             factory.setAccessible(true);&lt;BR&gt;          }&lt;BR&gt;          scan(factory, map);&lt;BR&gt;         } catch (SecurityException e) {&lt;BR&gt;
   // Absorb this&lt;BR&gt;         }&lt;BR&gt;          &lt;BR&gt;      } &lt;BR&gt;   }&lt;BR&gt;&lt;/PRE&gt;This 
works well now in the Local and Deployed environments. Perhaps Simple would 
benefit from a mode or an option on the @Root annotation to specify the depth of 
class scanning as an alternative to this work-around? &lt;BR&gt;&lt;BR&gt;It would be good 
to see Simple as the XML Serialization framework of choice for Google App Engine 
projects!&lt;BR&gt;&lt;BR&gt;I would be happy to contribute changes if you think this would 
be appropriate.&lt;BR&gt;&lt;BR&gt;Jeremy.&lt;BR&gt;&lt;pre&gt;
***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority. 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The 
Royal Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 

Visit our website at www.rbs.com

***********************************************************************************
&lt;/pre&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263612&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Google-App-Engine-support-tp26257223p26263612.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26257223</id>
	<title>Google App Engine support</title>
	<published>2009-11-08T11:47:14Z</published>
	<updated>2009-11-08T11:47:14Z</updated>
	<author>
		<name>Jeremy Blythe</name>
	</author>
	<content type="html">Google App Engine has various restrictions which hamper some frameworks. JAXB cannot be used on GAE because it uses many clasees which are not in the &amp;quot;whitelist&amp;quot;. Simple however, works really well and causes no problems in the Local
environment. However, when I deployed this to Google I was hit by the &lt;a href=&quot;http://code.google.com/appengine/docs/java/runtime.html#The_Sandbox&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Sandbox limitations&lt;/a&gt; for Reflection. When Simple scans your classes to build its &amp;quot;schema&amp;quot; it calls &lt;a href=&quot;http://java.sun.com/javase/6/docs/api/java/lang/reflect/AccessibleObject.html#setAccessible%28boolean%29&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;setAccessible(true)&lt;/a&gt;
on every method and constructor it finds all the way up the hierarchy
to Object. This violates the sandbox restriction: &amp;quot;An application
cannot reflect against any other classes not belonging to itself, and
it can not use the &lt;code&gt;setAccessible()&lt;/code&gt; method to circumvent
these restrictions.&amp;quot; App Engine throws a SecurityException when you try
to call setAccessible(true) on one of its classes.&lt;br&gt;
&lt;br&gt;
For my purposes (and probably the majority case?) I do not need to
serialize or deserialize to any non-public method of any superclasses
other than my own. So given this I decided to absorb any
SecurityExceptions thrown during the scanning process thus leaving
those methods out of the &amp;quot;schema&amp;quot;. Two minor changes are required to
the source. The scan methods in
org.simpleframework.xml.core.ClassScanner and
org.simpleframework.xml.core.ConstructrorScanner both need a try..catch
block added like so:&lt;br&gt;
&lt;pre&gt;//ClassScanner&lt;br&gt;   private void scan(Class real, Class type) throws Exception {&lt;br&gt;      Method[] method = type.getDeclaredMethods();&lt;br&gt;&lt;br&gt;      for(int i = 0; i &amp;lt; method.length; i++) {&lt;br&gt;         Method next = method[i];&lt;br&gt;
         try { &lt;br&gt;          if(!next.isAccessible()) {&lt;br&gt;             next.setAccessible(true);&lt;br&gt;          }&lt;br&gt;          scan(next);&lt;br&gt;        } catch (SecurityException e) {&lt;br&gt;   // Absorb this&lt;br&gt;        }&lt;br&gt;&lt;br&gt;
      }     &lt;br&gt;   }&lt;br&gt;&lt;br&gt;//ConstructorScanner&lt;br&gt;   private void scan(Class type) throws Exception {&lt;br&gt;      Constructor[] array = type.getDeclaredConstructors();&lt;br&gt;      &lt;br&gt;      for(Constructor factory: array){&lt;br&gt;
         ClassMap map = new ClassMap(type);&lt;br&gt;         &lt;br&gt;         try {&lt;br&gt;          if(!factory.isAccessible()) {&lt;br&gt;             factory.setAccessible(true);&lt;br&gt;          }&lt;br&gt;          scan(factory, map);&lt;br&gt;         } catch (SecurityException e) {&lt;br&gt;
   // Absorb this&lt;br&gt;         }&lt;br&gt;          &lt;br&gt;      } &lt;br&gt;   }&lt;br&gt;&lt;/pre&gt;
This works well now in the Local and Deployed environments. Perhaps
Simple would benefit from a mode or an option on the @Root annotation
to specify the depth of class scanning as an alternative to this work-around? &lt;br&gt;&lt;br&gt;It would be good to see Simple as the XML Serialization framework of choice for Google App Engine projects!&lt;br&gt;&lt;br&gt;I would be happy to contribute changes if you think this would be appropriate.&lt;br&gt;
&lt;br&gt;Jeremy.&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257223&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Google-App-Engine-support-tp26257223p26257223.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26250538</id>
	<title>Re: Convert Java objects to Strings</title>
	<published>2009-11-07T18:35:19Z</published>
	<updated>2009-11-07T18:35:19Z</updated>
	<author>
		<name>Keith Thomas</name>
	</author>
	<content type="html">Sorry that I confused with the 'equals' but despite my hokey description you have given me the answer on how to convert my Java objects to XML in String form. Many thanks.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Quirino Zagarese-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi,
&lt;br&gt;if I got what you want to do, I guess you have to override the equals
&lt;br&gt;method.
&lt;br&gt;&lt;br&gt;//in class Address
&lt;br&gt;public boolean equals(Object o) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!(o instanceof String)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return false;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }else{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String xml = (String) o;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String thisXml = null;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Serializer serializer = new Persister();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ByteArrayOutputStream stream = new ByteArrayOutputStream();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; serializer.write(this, stream);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (Exception e) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.printStackTrace();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; thisXml = stream.toString();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return thisXml.equals(xml);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;Obviously you have to use Simple annotations on classes' fields or getters
&lt;br&gt;as described in the
&lt;br&gt;tutorial&amp;lt;&lt;a href=&quot;http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php&lt;/a&gt;&amp;gt;
&lt;br&gt;.
&lt;br&gt;Hope this helps!
&lt;br&gt;&lt;br&gt;&lt;br&gt;2009/11/7 Keith Thomas &amp;lt;keith.thomas@gmail.com&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am looking for a tidy way to persist my Java objects in HBase without
&lt;br&gt;&amp;gt; resorting to serializing objects. Simple seems to have great possibilities
&lt;br&gt;&amp;gt; for me. The HBase api I am using is here if you are interested,
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://hadoop.apache.org/hbase/docs/current/api/index.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hadoop.apache.org/hbase/docs/current/api/index.html&lt;/a&gt;&lt;br&gt;&amp;gt; As you can see I need to add my data as byte arrays. To achieve this I am
&lt;br&gt;&amp;gt; trying to do the following,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1. Use Simple to convert my Java classes to XML Strings,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;e.g. assert myAddress.equals(&amp;quot;&amp;lt;address&amp;gt;&amp;lt;street&amp;gt;7 Hillcrest
&lt;br&gt;&amp;gt; Rd&amp;lt;/street&amp;gt;&amp;lt;city&amp;gt;Bristol&amp;lt;/city&amp;gt;&amp;lt;/address&amp;gt;&amp;quot;)
&lt;br&gt;&amp;gt; 2. Convert the Strings containing XML to byte arrays
&lt;br&gt;&amp;gt; 3. Put the byte arrays in my HBase database
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Steps 2 &amp; 3 are easy for me but I am stuck at Step 1, how to create a
&lt;br&gt;&amp;gt; String
&lt;br&gt;&amp;gt; containing an XML respresentation of my object. Any suggestions helping to
&lt;br&gt;&amp;gt; achieve this would be greatly appreciated.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Many thanks.
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/Convert-Java-objects-to-Strings-tp26235457p26235457.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Convert-Java-objects-to-Strings-tp26235457p26235457.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the Simple XML Serialization mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus
&lt;br&gt;&amp;gt; on
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Simple-support mailing list
&lt;br&gt;&amp;gt; Simple-support@lists.sourceforge.net
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Quirino Zagarese
&lt;br&gt;&lt;br&gt;Italian OpenLaszlo Community &amp;nbsp;- www.laszloitalia.org
&lt;br&gt;&lt;br&gt;EU4RIA: Laszlo+Java, easily - eu4ria.googlecode.com
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;Simple-support@lists.sourceforge.net
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-Java-objects-to-Strings-tp26235457p26250538.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26245824</id>
	<title>Re: Convert Java objects to Strings</title>
	<published>2009-11-07T07:29:55Z</published>
	<updated>2009-11-07T07:29:55Z</updated>
	<author>
		<name>Quirino Zagarese-2</name>
	</author>
	<content type="html">Hi,&lt;br&gt;if I got what you want to do, I guess you have to override the equals method.&lt;br&gt;&lt;br&gt;//in class Address&lt;br&gt;public boolean equals(Object o) {&lt;br&gt;        if (!(o instanceof String)) {&lt;br&gt;            return false;&lt;br&gt;        }else{&lt;br&gt;
            String xml = (String) o;&lt;br&gt;            String thisXml = null;&lt;br&gt;            Serializer serializer = new Persister();&lt;br&gt;            ByteArrayOutputStream stream = new ByteArrayOutputStream();&lt;br&gt;            try {&lt;br&gt;
                serializer.write(this, stream);&lt;br&gt;            } catch (Exception e) {&lt;br&gt;                e.printStackTrace();&lt;br&gt;            }&lt;br&gt;            thisXml = stream.toString();&lt;br&gt;            return thisXml.equals(xml);&lt;br&gt;
        }&lt;br&gt;    }&lt;br&gt;&lt;br&gt;Obviously you have to use Simple annotations on classes&amp;#39; fields or getters as described in the &lt;a href=&quot;http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tutorial&lt;/a&gt;.&lt;br&gt;
Hope this helps!&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/7 Keith Thomas &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26245824&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;keith.thomas@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;br&gt;
I am looking for a tidy way to persist my Java objects in HBase without&lt;br&gt;
resorting to serializing objects. Simple seems to have great possibilities&lt;br&gt;
for me. The HBase api I am using is here if you are interested,&lt;br&gt;
&lt;a href=&quot;http://hadoop.apache.org/hbase/docs/current/api/index.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://hadoop.apache.org/hbase/docs/current/api/index.html&lt;/a&gt;&lt;br&gt;
As you can see I need to add my data as byte arrays. To achieve this I am&lt;br&gt;
trying to do the following,&lt;br&gt;
&lt;br&gt;
1. Use Simple to convert my Java classes to XML Strings,&lt;br&gt;
    e.g. assert myAddress.equals(&amp;quot;&amp;lt;address&amp;gt;&amp;lt;street&amp;gt;7 Hillcrest&lt;br&gt;
Rd&amp;lt;/street&amp;gt;&amp;lt;city&amp;gt;Bristol&amp;lt;/city&amp;gt;&amp;lt;/address&amp;gt;&amp;quot;)&lt;br&gt;
2. Convert the Strings containing XML to byte arrays&lt;br&gt;
3. Put the byte arrays in my HBase database&lt;br&gt;
&lt;br&gt;
Steps 2 &amp;amp; 3 are easy for me but I am stuck at Step 1, how to create a String&lt;br&gt;
containing an XML respresentation of my object. Any suggestions helping to&lt;br&gt;
achieve this would be greatly appreciated.&lt;br&gt;
&lt;br&gt;
Many thanks.&lt;br&gt;
--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://old.nabble.com/Convert-Java-objects-to-Strings-tp26235457p26235457.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Convert-Java-objects-to-Strings-tp26235457p26235457.html&lt;/a&gt;&lt;br&gt;


Sent from the Simple XML Serialization mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
------------------------------------------------------------------------------&lt;br&gt;
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day&lt;br&gt;
trial. Simplify your report design, integration and deployment - and focus on&lt;br&gt;
what you do best, core application coding. Discover what&amp;#39;s new with&lt;br&gt;
Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
Simple-support mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26245824&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Quirino Zagarese&lt;br&gt;&lt;br&gt;Italian OpenLaszlo Community  - &lt;a href=&quot;http://www.laszloitalia.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.laszloitalia.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;EU4RIA: Laszlo+Java, easily - &lt;a href=&quot;http://eu4ria.googlecode.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;eu4ria.googlecode.com&lt;/a&gt;&lt;br&gt;


&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26245824&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-Java-objects-to-Strings-tp26235457p26245824.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26235457</id>
	<title>Convert Java objects to Strings</title>
	<published>2009-11-06T18:18:11Z</published>
	<updated>2009-11-06T18:18:11Z</updated>
	<author>
		<name>Keith Thomas</name>
	</author>
	<content type="html">I am looking for a tidy way to persist my Java objects in HBase without resorting to serializing objects. Simple seems to have great possibilities for me. The HBase api I am using is here if you are interested,
&lt;br&gt;&lt;a href=&quot;http://hadoop.apache.org/hbase/docs/current/api/index.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hadoop.apache.org/hbase/docs/current/api/index.html&lt;/a&gt;&lt;br&gt;As you can see I need to add my data as byte arrays. To achieve this I am trying to do the following,
&lt;br&gt;&lt;br&gt;1. Use Simple to convert my Java classes to XML Strings,
&lt;br&gt;&amp;nbsp; &amp;nbsp; e.g. assert myAddress.equals(&amp;quot;&amp;lt;address&amp;gt;&amp;lt;street&amp;gt;7 Hillcrest Rd&amp;lt;/street&amp;gt;&amp;lt;city&amp;gt;Bristol&amp;lt;/city&amp;gt;&amp;lt;/address&amp;gt;&amp;quot;)
&lt;br&gt;2. Convert the Strings containing XML to byte arrays 
&lt;br&gt;3. Put the byte arrays in my HBase database
&lt;br&gt;&lt;br&gt;Steps 2 &amp; 3 are easy for me but I am stuck at Step 1, how to create a String containing an XML respresentation of my object. Any suggestions helping to achieve this would be greatly appreciated.
&lt;br&gt;&lt;br&gt;Many thanks.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-Java-objects-to-Strings-tp26235457p26235457.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26190782</id>
	<title>Parsing JavaBean to XML and Viceversa</title>
	<published>2009-11-03T20:18:03Z</published>
	<updated>2009-11-03T20:18:03Z</updated>
	<author>
		<name>SivaKumarl</name>
	</author>
	<content type="html">Hi Friends,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I need to parse JavaBean to XML and XML to JavaBean, kindly suggest me the best API to parse
&lt;br&gt;&lt;br&gt;Thanks in Advance
&lt;br&gt;----------------
&lt;br&gt;Siva</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Parsing-JavaBean-to-XML-and-Viceversa-tp26190782p26190782.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26127024</id>
	<title>Re: Proper parsing of InputStreams with encoding attribute in XML prologue.</title>
	<published>2009-10-30T02:18:47Z</published>
	<updated>2009-10-30T02:18:47Z</updated>
	<author>
		<name>Dawid Weiss-2</name>
	</author>
	<content type="html">Thanks Niall.
&lt;br&gt;&lt;br&gt;Dawid
&lt;br&gt;&lt;br&gt;On Fri, Oct 30, 2009 at 10:04 AM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26127024&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;niall.gallagher@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Sounds good, ill add this in.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Niall Gallagher
&lt;br&gt;&amp;gt; RBS Global Banking &amp; Markets
&lt;br&gt;&amp;gt; Office: +44 7879498724
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Dawid Weiss [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26127024&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dawid.weiss@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: 29 October 2009 18:36
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26127024&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [Simple-support] Proper parsing of InputStreams with encoding attribute in XML prologue.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi there,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We are using SimpleXML in Carrot2 (Carrot2.org), it's great stuff, thanks.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We would like to point at one potential issue that could be easily
&lt;br&gt;&amp;gt; fixed: currently, the Persister class forces
&lt;br&gt;&amp;gt; UTF-8 encoding on byte streams, which may not be correct (let's say the XML is provided by users and not generated by SimpleXML). The relevant section of Persister could be easily fixed to rely on the XML parser's character detection and decoding. So:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;    public &amp;lt;T&amp;gt; T read(Class&amp;lt;? extends T&amp;gt; type, InputStream source) throws Exception {
&lt;br&gt;&amp;gt; -      return (T)read(type, source, &amp;quot;utf-8&amp;quot;);
&lt;br&gt;&amp;gt; +      return (T)read(type, NodeBuilder.read(source));
&lt;br&gt;&amp;gt;    }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; and then in NodeBuilder add a method that relies on the XML parser's decoding:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; +   public static InputNode read(InputStream source) throws Exception {
&lt;br&gt;&amp;gt; +      return read(factory.createXMLEventReader(source));
&lt;br&gt;&amp;gt; +   }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The entire patch against 2.1.4 is attached. We would appreciate if this could be integrated into the next version (or at least if NodeBuilder's read(XMLEventReader) could be made public to allow alternative parsing strategies):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; private static InputNode read(XMLEventReader source) throws Exception {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Dawid
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ***********************************************************************************
&lt;br&gt;&amp;gt; The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
&lt;br&gt;&amp;gt; Authorised and regulated by the Financial Services Authority.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This e-mail message is confidential and for use by the
&lt;br&gt;&amp;gt; addressee only. If the message is received by anyone other
&lt;br&gt;&amp;gt; than the addressee, please return the message to the sender
&lt;br&gt;&amp;gt; by replying to it and then delete the message from your
&lt;br&gt;&amp;gt; computer. Internet e-mails are not necessarily secure. The
&lt;br&gt;&amp;gt; Royal Bank of Scotland plc does not accept responsibility for
&lt;br&gt;&amp;gt; changes made to this message after it was sent.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Whilst all reasonable care has been taken to avoid the
&lt;br&gt;&amp;gt; transmission of viruses, it is the responsibility of the recipient to
&lt;br&gt;&amp;gt; ensure that the onward transmission, opening or use of this
&lt;br&gt;&amp;gt; message and any attachments will not adversely affect its
&lt;br&gt;&amp;gt; systems or data. No responsibility is accepted by The
&lt;br&gt;&amp;gt; Royal Bank of Scotland plc in this regard and the recipient should carry
&lt;br&gt;&amp;gt; out such virus and other checks as it considers appropriate.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Visit our website at www.rbs.com
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ***********************************************************************************
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26127024&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proper-parsing-of-InputStreams-with-encoding-attribute-in-XML-prologue.-tp26118457p26127024.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26126863</id>
	<title>Re: Proper parsing of InputStreams with encoding	attribute in XML prologue.</title>
	<published>2009-10-30T02:04:17Z</published>
	<updated>2009-10-30T02:04:17Z</updated>
	<author>
		<name>niall.gallagher</name>
	</author>
	<content type="html">Sounds good, ill add this in. 
&lt;br&gt;&lt;br&gt;&lt;br&gt;Niall Gallagher
&lt;br&gt;RBS Global Banking &amp; Markets
&lt;br&gt;Office: +44 7879498724 &amp;nbsp; 
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Dawid Weiss [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26126863&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dawid.weiss@...&lt;/a&gt;] 
&lt;br&gt;Sent: 29 October 2009 18:36
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26126863&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;
&lt;br&gt;Subject: [Simple-support] Proper parsing of InputStreams with encoding attribute in XML prologue.
&lt;br&gt;&lt;br&gt;Hi there,
&lt;br&gt;&lt;br&gt;We are using SimpleXML in Carrot2 (Carrot2.org), it's great stuff, thanks.
&lt;br&gt;&lt;br&gt;We would like to point at one potential issue that could be easily
&lt;br&gt;fixed: currently, the Persister class forces
&lt;br&gt;UTF-8 encoding on byte streams, which may not be correct (let's say the XML is provided by users and not generated by SimpleXML). The relevant section of Persister could be easily fixed to rely on the XML parser's character detection and decoding. So:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; public &amp;lt;T&amp;gt; T read(Class&amp;lt;? extends T&amp;gt; type, InputStream source) throws Exception {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;return (T)read(type, source, &amp;quot;utf-8&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;return (T)read(type, NodeBuilder.read(source));
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;and then in NodeBuilder add a method that relies on the XML parser's decoding:
&lt;br&gt;&lt;br&gt;+ &amp;nbsp; public static InputNode read(InputStream source) throws Exception {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;return read(factory.createXMLEventReader(source));
&lt;br&gt;+ &amp;nbsp; }
&lt;br&gt;&lt;br&gt;The entire patch against 2.1.4 is attached. We would appreciate if this could be integrated into the next version (or at least if NodeBuilder's read(XMLEventReader) could be made public to allow alternative parsing strategies):
&lt;br&gt;&lt;br&gt;private static InputNode read(XMLEventReader source) throws Exception {
&lt;br&gt;&lt;br&gt;Dawid
&lt;br&gt;&lt;br&gt;***********************************************************************************
&lt;br&gt;The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
&lt;br&gt;Authorised and regulated by the Financial Services Authority. 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;This e-mail message is confidential and for use by the 
&lt;br&gt;addressee only. If the message is received by anyone other 
&lt;br&gt;than the addressee, please return the message to the sender 
&lt;br&gt;by replying to it and then delete the message from your 
&lt;br&gt;computer. Internet e-mails are not necessarily secure. The 
&lt;br&gt;Royal Bank of Scotland plc does not accept responsibility for 
&lt;br&gt;changes made to this message after it was sent. 
&lt;br&gt;&lt;br&gt;Whilst all reasonable care has been taken to avoid the 
&lt;br&gt;transmission of viruses, it is the responsibility of the recipient to 
&lt;br&gt;ensure that the onward transmission, opening or use of this 
&lt;br&gt;message and any attachments will not adversely affect its 
&lt;br&gt;systems or data. No responsibility is accepted by The 
&lt;br&gt;Royal Bank of Scotland plc in this regard and the recipient should carry 
&lt;br&gt;out such virus and other checks as it considers appropriate. 
&lt;br&gt;&lt;br&gt;Visit our website at www.rbs.com
&lt;br&gt;&lt;br&gt;***********************************************************************************
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26126863&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proper-parsing-of-InputStreams-with-encoding-attribute-in-XML-prologue.-tp26118457p26126863.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26118457</id>
	<title>Proper parsing of InputStreams with encoding attribute in XML prologue.</title>
	<published>2009-10-29T11:35:42Z</published>
	<updated>2009-10-29T11:35:42Z</updated>
	<author>
		<name>Dawid Weiss-2</name>
	</author>
	<content type="html">Hi there,
&lt;br&gt;&lt;br&gt;We are using SimpleXML in Carrot2 (Carrot2.org), it's great stuff, thanks.
&lt;br&gt;&lt;br&gt;We would like to point at one potential issue that could be easily
&lt;br&gt;fixed: currently, the Persister class forces
&lt;br&gt;UTF-8 encoding on byte streams, which may not be correct (let's say
&lt;br&gt;the XML is provided by users and not generated by SimpleXML). The
&lt;br&gt;relevant section of Persister could be easily fixed to rely on the XML
&lt;br&gt;parser's character detection and decoding. So:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; public &amp;lt;T&amp;gt; T read(Class&amp;lt;? extends T&amp;gt; type, InputStream source)
&lt;br&gt;throws Exception {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;return (T)read(type, source, &amp;quot;utf-8&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;return (T)read(type, NodeBuilder.read(source));
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;and then in NodeBuilder add a method that relies on the XML parser's decoding:
&lt;br&gt;&lt;br&gt;+ &amp;nbsp; public static InputNode read(InputStream source) throws Exception {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;return read(factory.createXMLEventReader(source));
&lt;br&gt;+ &amp;nbsp; }
&lt;br&gt;&lt;br&gt;The entire patch against 2.1.4 is attached. We would appreciate if
&lt;br&gt;this could be integrated into the next version (or at least if
&lt;br&gt;NodeBuilder's read(XMLEventReader) could be made public to allow
&lt;br&gt;alternative parsing strategies):
&lt;br&gt;&lt;br&gt;private static InputNode read(XMLEventReader source) throws Exception {
&lt;br&gt;&lt;br&gt;Dawid
&lt;br&gt;&lt;br /&gt;&lt;tt&gt;[byte-streams.patch]&lt;/tt&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;diff --git a/src/org/simpleframework/xml/core/Persister.java b/src/org/simpleframework/xml/core/Persister.java
&lt;br&gt;index 43e2c91..eac218d 100644
&lt;br&gt;--- a/src/org/simpleframework/xml/core/Persister.java
&lt;br&gt;+++ b/src/org/simpleframework/xml/core/Persister.java
&lt;br&gt;@@ -451,7 +451,7 @@ public class Persister implements Serializer {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @throws Exception if the object cannot be fully deserialized
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; public &amp;lt;T&amp;gt; T read(Class&amp;lt;? extends T&amp;gt; type, InputStream source) throws Exception {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp;return (T)read(type, source, &amp;quot;utf-8&amp;quot;); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;return (T)read(type, NodeBuilder.read(source)); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; /**
&lt;br&gt;@@ -464,6 +464,8 @@ public class Persister implements Serializer {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param type this is the class type to be deserialized from XML
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param source this provides the source of the XML document
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param charset this is the character set to read the XML with
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(if the encoding is unknown, you should rely on the XML parser
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;instead -- see {@link #read(Class, InputStream)}).
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return the object deserialized from the XML document 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* 
&lt;br&gt;diff --git a/src/org/simpleframework/xml/stream/NodeBuilder.java b/src/org/simpleframework/xml/stream/NodeBuilder.java
&lt;br&gt;index e855002..238dcad 100644
&lt;br&gt;--- a/src/org/simpleframework/xml/stream/NodeBuilder.java
&lt;br&gt;+++ b/src/org/simpleframework/xml/stream/NodeBuilder.java
&lt;br&gt;@@ -22,8 +22,7 @@ package org.simpleframework.xml.stream;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;import javax.xml.stream.XMLInputFactory;
&lt;br&gt;&amp;nbsp;import javax.xml.stream.XMLEventReader;
&lt;br&gt;-import java.io.Reader;
&lt;br&gt;-import java.io.Writer;
&lt;br&gt;+import java.io.*;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;/**
&lt;br&gt;&amp;nbsp; * The &amp;lt;code&amp;gt;NodeBuilder&amp;lt;/code&amp;gt; object is used to create either an
&lt;br&gt;@@ -69,6 +68,19 @@ public final class NodeBuilder {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param source this contains the contents of the XML source
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @throws Exception thrown if there is an I/O exception
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;*/ &amp;nbsp; 
&lt;br&gt;+ &amp;nbsp; public static InputNode read(InputStream source) throws Exception {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;return read(factory.createXMLEventReader(source)); &amp;nbsp; 
&lt;br&gt;+ &amp;nbsp; }
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; /**
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;* This is used to create an &amp;lt;code&amp;gt;InputNode&amp;lt;/code&amp;gt; that can be 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;* used to read XML from the specified reader. The reader will
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;* be positioned at the root element in the XML document.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;*
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;* @param source this contains the contents of the XML source
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;*
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;* @throws Exception thrown if there is an I/O exception
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/ &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; private static InputNode read(XMLEventReader source) throws Exception {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return new NodeReader(source).readRoot(); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26118457&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Proper-parsing-of-InputStreams-with-encoding-attribute-in-XML-prologue.-tp26118457p26118457.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25992533</id>
	<title>Re: arraylist of array, how to serialize it</title>
	<published>2009-10-21T06:25:58Z</published>
	<updated>2009-10-21T06:25:58Z</updated>
	<author>
		<name>niall.gallagher</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.2900.5848&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;SPAN class=208322113-21102009&gt;Hi,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;SPAN class=208322113-21102009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;SPAN class=208322113-21102009&gt;There are a few ways you can do this. If bean were a 
primitive it would work fine, as primitives are serialized with Transform 
implementations. If you were happy that the bean could be serialized this way, 
you could implement one. However, I think given it is a bean it would be better 
to have it serialized as XML elements and attributes. Currently the easiest way 
to do it is as you have suggested, or use a List&amp;lt;Bean&amp;gt; instead. 
&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;SPAN class=208322113-21102009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;SPAN class=208322113-21102009&gt;Niall&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR&gt;
&lt;DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left&gt;
&lt;HR tabIndex=-1&gt;
&lt;FONT face=Tahoma size=2&gt;&lt;B&gt;From:&lt;/B&gt; Quirino Zagarese 
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25992533&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;quirino@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 21 October 2009 
14:20&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; Stefano&lt;BR&gt;&lt;B&gt;Cc:&lt;/B&gt; 
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25992533&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; Re: [Simple-support] 
arraylist of array, how to serialize it&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;Hi Stefano,&lt;BR&gt;I guess this is the only way to do that, but I'm not 
completely sure about it.&lt;BR&gt;I wonder, then, if it could be useful to be able to 
do something like this:&lt;BR&gt;&lt;BR&gt;@ElementList(&lt;BR&gt;
&lt;DIV style=&quot;MARGIN-LEFT: 40px&quot;&gt;innerArray=@ElementArray(type=Bean.class)&lt;BR&gt;)&lt;BR&gt;&lt;/DIV&gt;private 
List&amp;lt;Bean[]&amp;gt; Buffer = new ArrayList&amp;lt;Bean[]&amp;gt;();&lt;BR&gt;&lt;BR&gt;This could be 
a good way&amp;nbsp; to handle this kind of situations without having to create a 
wrapping class for the inner collection.&lt;BR&gt;What do you think 
Niall?&lt;BR&gt;Regards&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;
&lt;DIV class=gmail_quote&gt;2009/10/21 Stefano &lt;SPAN dir=ltr&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25992533&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;elstefen@...&lt;/a&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR&gt;
&lt;BLOCKQUOTE class=gmail_quote style=&quot;PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid&quot;&gt;Hi 
  all.&lt;BR&gt;i need to serialize a thing like this:&lt;BR&gt;&lt;BR&gt;@ElementList&lt;BR&gt;private 
  List&amp;lt;Bean[]&amp;gt; Buffer = new ArrayList&amp;lt;Bean[]&amp;gt;();&lt;BR&gt;&lt;BR&gt;but i 
  can't.&lt;BR&gt;&lt;BR&gt;i'd to create another calss to serialize the Bean[] like 
  this:&lt;BR&gt;&lt;BR&gt;class arrayBean{&lt;BR&gt;&amp;nbsp;&amp;nbsp; 
  @ElementArray&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private Bean[] beans;&lt;BR&gt;&lt;BR&gt;and 
  then&amp;nbsp; serialize in this way&lt;BR clear=all&gt;@ElementList&lt;BR&gt;private 
  List&amp;lt;arrayBean&amp;gt; Buffer = new 
  ArrayList&amp;lt;arrayBean&amp;gt;();&lt;BR&gt;&lt;BR&gt;?&lt;BR&gt;-- &lt;BR&gt;&lt;FONT color=#888888&gt;Stefano&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;------------------------------------------------------------------------------&lt;BR&gt;Come 
  build with us! The BlackBerry(R) Developer Conference in SF, CA&lt;BR&gt;is the only 
  developer event you need to attend this year. Jumpstart your&lt;BR&gt;developing 
  skills, take BlackBerry mobile applications to market and stay&lt;BR&gt;ahead of the 
  curve. Join us from November 9 - 12, 2009. Register now!&lt;BR&gt;&lt;A href=&quot;http://p.sf.net/sfu/devconference&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/A&gt;&lt;BR&gt;_______________________________________________&lt;BR&gt;Simple-support 
  mailing list&lt;BR&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25992533&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;&lt;BR&gt;&lt;A href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=_blank rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;BR clear=all&gt;&lt;BR&gt;-- &lt;BR&gt;Quirino Zagarese&lt;BR&gt;&lt;BR&gt;Italian OpenLaszlo Community 
&amp;nbsp;- &lt;A href=&quot;http://www.laszloitalia.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.laszloitalia.org&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;EU4RIA: 
Laszlo+Java, easily - &lt;A href=&quot;http://eu4ria.googlecode.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eu4ria.googlecode.com&lt;/A&gt;&lt;BR&gt;&lt;pre&gt;
***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority. 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The 
Royal Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 

Visit our website at www.rbs.com

***********************************************************************************
&lt;/pre&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25992533&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/arraylist-of-array%2C-how-to-serialize-it-tp25988377p25992533.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25992399</id>
	<title>Re: arraylist of array, how to serialize it</title>
	<published>2009-10-21T06:19:36Z</published>
	<updated>2009-10-21T06:19:36Z</updated>
	<author>
		<name>Quirino Zagarese-2</name>
	</author>
	<content type="html">Hi Stefano,&lt;br&gt;I guess this is the only way to do that, but I&amp;#39;m not completely sure about it.&lt;br&gt;I wonder, then, if it could be useful to be able to do something like this:&lt;br&gt;&lt;br&gt;@ElementList(&lt;br&gt;&lt;div style=&quot;margin-left: 40px;&quot;&gt;
innerArray=@ElementArray(type=Bean.class)&lt;br&gt;)&lt;br&gt;&lt;/div&gt;private List&amp;lt;Bean[]&amp;gt; Buffer = new ArrayList&amp;lt;Bean[]&amp;gt;();&lt;br&gt;&lt;br&gt;This could be a good way  to handle this kind of situations without having to create a wrapping class for the inner collection.&lt;br&gt;
What do you think Niall?&lt;br&gt;Regards&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/10/21 Stefano &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25992399&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;elstefen@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi all.&lt;br&gt;i need to serialize a thing like this:&lt;br&gt;&lt;br&gt;@ElementList&lt;br&gt;private List&amp;lt;Bean[]&amp;gt; Buffer = new ArrayList&amp;lt;Bean[]&amp;gt;();&lt;br&gt;&lt;br&gt;but i can&amp;#39;t.&lt;br&gt;&lt;br&gt;i&amp;#39;d to create another calss to serialize the Bean[] like this:&lt;br&gt;


&lt;br&gt;class arrayBean{&lt;br&gt;   @ElementArray&lt;br&gt;    private Bean[] beans;&lt;br&gt;&lt;br&gt;and then  serialize in this way&lt;br clear=&quot;all&quot;&gt;@ElementList&lt;br&gt;
private List&amp;lt;arrayBean&amp;gt; Buffer = new ArrayList&amp;lt;arrayBean&amp;gt;();&lt;br&gt;&lt;br&gt;?&lt;br&gt;-- &lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;Stefano&lt;br&gt;
&lt;/font&gt;&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Come build with us! The BlackBerry(R) Developer Conference in SF, CA&lt;br&gt;
is the only developer event you need to attend this year. Jumpstart your&lt;br&gt;
developing skills, take BlackBerry mobile applications to market and stay&lt;br&gt;
ahead of the curve. Join us from November 9 - 12, 2009. Register now!&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
Simple-support mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25992399&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Quirino Zagarese&lt;br&gt;&lt;br&gt;Italian OpenLaszlo Community  - &lt;a href=&quot;http://www.laszloitalia.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.laszloitalia.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;EU4RIA: Laszlo+Java, easily - &lt;a href=&quot;http://eu4ria.googlecode.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;eu4ria.googlecode.com&lt;/a&gt;&lt;br&gt;

&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25992399&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/arraylist-of-array%2C-how-to-serialize-it-tp25988377p25992399.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25988377</id>
	<title>arraylist of array, how to serialize it</title>
	<published>2009-10-21T01:22:25Z</published>
	<updated>2009-10-21T01:22:25Z</updated>
	<author>
		<name>Stefano-53</name>
	</author>
	<content type="html">Hi all.&lt;br&gt;i need to serialize a thing like this:&lt;br&gt;&lt;br&gt;@ElementList&lt;br&gt;private List&amp;lt;Bean[]&amp;gt; Buffer = new ArrayList&amp;lt;Bean[]&amp;gt;();&lt;br&gt;&lt;br&gt;but i can&amp;#39;t.&lt;br&gt;&lt;br&gt;i&amp;#39;d to create another calss to serialize the Bean[] like this:&lt;br&gt;

&lt;br&gt;class arrayBean{&lt;br&gt;   @ElementArray&lt;br&gt;    private Bean[] beans;&lt;br&gt;&lt;br&gt;and then  serialize in this way&lt;br clear=&quot;all&quot;&gt;@ElementList&lt;br&gt;
private List&amp;lt;arrayBean&amp;gt; Buffer = new ArrayList&amp;lt;arrayBean&amp;gt;();&lt;br&gt;&lt;br&gt;?&lt;br&gt;-- &lt;br&gt;Stefano&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25988377&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/arraylist-of-array%2C-how-to-serialize-it-tp25988377p25988377.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25971508</id>
	<title>Re: Serializing to and from Element</title>
	<published>2009-10-20T01:29:54Z</published>
	<updated>2009-10-20T01:29:54Z</updated>
	<author>
		<name>niall.gallagher</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.2900.5848&quot; name=GENERATOR&gt;&lt;!-- converted from rtf --&gt;

&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=920332508-20102009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Hi,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=920332508-20102009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=920332508-20102009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Simple started off using DOM. It progressed to 1.0 before I 
wrote a DOM like wrapper around StAX. The org.simpleframework.xml.stream package 
is 100% interfaces, which is very similar to DOM. I think all you need to do is 
implement the InputNode and OutputNode around a org.w3c.dom.Element as well as 
Position, which is easy. It should be a very easy job, I have not had time to do 
it myself. But I implemented org.simpleframework.xml.stream for this exact 
issue.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=920332508-20102009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=920332508-20102009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Niall&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=920332508-20102009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=920332508-20102009&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;HR tabIndex=-1&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Tahoma size=2&gt;&lt;B&gt;From:&lt;/B&gt; Rob Griffin 
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25971508&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rob.griffin@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 20 October 2009 
01:18&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25971508&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; 
[Simple-support] Serializing to and from Element&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;&lt;FONT face=&quot;Arial, sans-serif&quot; size=2&gt;
&lt;DIV&gt;Niall,&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Times New Roman, serif&quot;&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;We need a way of serializing to and from an Element instead of a steam 
because we embed our object&amp;#8217;s XML inside other XML.&lt;/DIV&gt;
&lt;DIV&gt;Can Simple do this as it stands? &lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Calibri, sans-serif&quot; size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;Thanks,&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Calibri, sans-serif&quot; size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;Rob Griffin&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;Quest Software&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Calibri, sans-serif&quot; size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Calibri, sans-serif&quot; size=2&gt;&lt;A href=&quot;http://www.quest.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;FONT face=&quot;Arial, sans-serif&quot; color=#0000ff size=2&gt;&lt;U&gt;www.quest.com&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Calibri, sans-serif&quot; size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;Calibri, sans-serif&quot; size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/FONT&gt;&lt;pre&gt;
***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority. 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The 
Royal Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 

Visit our website at www.rbs.com

***********************************************************************************
&lt;/pre&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25971508&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Serializing-to-and-from-Element-tp25968014p25971508.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25968014</id>
	<title>Serializing to and from Element</title>
	<published>2009-10-19T17:18:25Z</published>
	<updated>2009-10-19T17:18:25Z</updated>
	<author>
		<name>Rob Griffin</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Exchange Server&quot;&gt;
&lt;!-- converted from rtf --&gt;

&lt;/head&gt;
&lt;body&gt;
&lt;font face=&quot;Arial, sans-serif&quot; size=&quot;2&quot;&gt;
&lt;div&gt;Niall,&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Times New Roman, serif&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;We need a way of serializing to and from an Element instead of a steam because we embed our object&amp;#8217;s XML inside other XML.&lt;/div&gt;
&lt;div&gt;Can Simple do this as it stands? &lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Calibri, sans-serif&quot; size=&quot;2&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;2&quot;&gt;Thanks,&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Calibri, sans-serif&quot; size=&quot;3&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;2&quot;&gt;Rob Griffin&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;2&quot;&gt;Quest Software&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Calibri, sans-serif&quot; size=&quot;3&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Calibri, sans-serif&quot; size=&quot;2&quot;&gt;&lt;a href=&quot;http://www.quest.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;font face=&quot;Arial, sans-serif&quot; size=&quot;2&quot; color=&quot;#0000FF&quot;&gt;&lt;u&gt;www.quest.com&lt;/u&gt;&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Calibri, sans-serif&quot; size=&quot;2&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Calibri, sans-serif&quot; size=&quot;2&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/div&gt;
&lt;/font&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25968014&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Serializing-to-and-from-Element-tp25968014p25968014.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25961140</id>
	<title>Re: Problem with length attribute included for array	elements</title>
	<published>2009-10-19T09:13:59Z</published>
	<updated>2009-10-19T09:13:59Z</updated>
	<author>
		<name>niall.gallagher</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.2900.5848&quot; name=GENERATOR&gt;

&lt;/HEAD&gt;
&lt;BODY bgColor=#ffffff&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=029371016-19102009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Hi,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=029371016-19102009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=029371016-19102009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Yes, you have a number of options. One is to remove the 
length attribute from within the Strategy, the other is to use a list instead of 
an array. This does not have a length= attribute. Note, without the length 
attribute you can not deserialize an array properly, it may seem like a usless 
attribute, but its used to deserialize complex object graphs where the array 
must exist before the object it references.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=029371016-19102009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=029371016-19102009&gt;&lt;FONT face=Arial color=#0000ff size=2&gt;Niall&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;FONT face=Arial color=#003481 size=2&gt;&lt;STRONG&gt;Niall 
Gallagher&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face=Arial color=#000000 size=1&gt;RBS Global 
Banking &amp;amp; Markets&lt;/FONT&gt;&lt;BR&gt;&lt;FONT face=Arial color=#000000 size=1&gt;Office: 
+44 7879498724 &lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;!--eMS5.0.5.D19M.10Y.2009--&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR&gt;
&lt;DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left&gt;
&lt;HR tabIndex=-1&gt;
&lt;FONT face=Tahoma size=2&gt;&lt;B&gt;From:&lt;/B&gt; Vijay Kachhawal 
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25961140&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vijay.kachhawal@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Sent:&lt;/B&gt; 19 October 2009 
17:03&lt;BR&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25961140&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Subject:&lt;/B&gt; 
[Simple-support] Problem with length attribute included for array 
elements&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;Hello Support Team,&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;My application need to handle the XML file 
reading generated from .NET as well as Java platform. The XML file is uniform 
for both the platforms. &lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;I developed a java file for performing the 
reading and writing XML file using java. My java file is having 2 array 
elements. When I wrote the java object to XML file, I observed that &quot;lenth&quot; 
attribute is automatically included for the array elements. I am able to read 
this file correctly using java. But when I tried to read a &quot;.NET&quot; generated xml 
file using my same java program, I am getting &quot;ArrayIndexOutOfBoundsException&quot;. 
When reviewed the code, found that &quot;length&quot; attribute is missing for array 
elements. When I explicitly added this attribute for the corresponding elements. 
the problem was solved. The same problem I also encountered when I deleted the 
&quot;length&quot; attribute from java generated xml file. &lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;So can anybody help me out how to resolve this 
issue? I need to read the .NET generated XML file without making any explicit 
changes i.e. without adding &quot;length&quot; attribute for array elements.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;Thanks in advance.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;Vijay&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;pre&gt;
***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority. 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The 
Royal Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 

Visit our website at www.rbs.com

***********************************************************************************
&lt;/pre&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25961140&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-with-length-attribute-included-for-array-elements-tp25961016p25961140.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25961016</id>
	<title>Problem with length attribute included for array elements</title>
	<published>2009-10-19T09:03:29Z</published>
	<updated>2009-10-19T09:03:29Z</updated>
	<author>
		<name>Vijay Kachhawal</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.5700.6&quot; name=GENERATOR&gt;

&lt;/HEAD&gt;
&lt;BODY bgColor=#ffffff&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;Hello Support Team,&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;My application need to handle the XML file 
reading generated from .NET as well as Java platform. The XML file is uniform 
for both the platforms. &lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;I developed a java file for performing the 
reading and writing XML file using java. My java file is having 2 array 
elements. When I wrote the java object to XML file, I observed that &quot;lenth&quot; 
attribute is automatically included for the array elements. I am able to read 
this file correctly using java. But when I tried to read a &quot;.NET&quot; generated xml 
file using my same java program, I am getting &quot;ArrayIndexOutOfBoundsException&quot;. 
When reviewed the code, found that &quot;length&quot; attribute is missing for array 
elements. When I explicitly added this attribute for the corresponding elements. 
the problem was solved. The same problem I also encountered when I deleted the 
&quot;length&quot; attribute from java generated xml file. &lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;So can anybody help me out how to resolve this 
issue? I need to read the .NET generated XML file without making any explicit 
changes i.e. without adding &quot;length&quot; attribute for array elements.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;Thanks in advance.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Verdana size=2&gt;Vijay&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25961016&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-with-length-attribute-included-for-array-elements-tp25961016p25961016.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25959364</id>
	<title>(De)serialising classes conforming to an interface</title>
	<published>2009-10-19T07:30:28Z</published>
	<updated>2009-10-19T07:30:28Z</updated>
	<author>
		<name>Dave Murray-Rust-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I've got some stuff that looks like:
&lt;br&gt;&lt;br&gt;interface I {
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;class A implements I {
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;class B implements I {
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;I'd like to be able to have a file containing an I, and then load it &amp;nbsp;
&lt;br&gt;in without having to know if it is an A or a B.
&lt;br&gt;&lt;br&gt;Currently if I serialise an A, I get
&lt;br&gt;&amp;lt;a&amp;gt; ... &amp;lt;/a&amp;gt;
&lt;br&gt;&lt;br&gt;If I try:
&lt;br&gt;persister.read( I.class, file )
&lt;br&gt;&lt;br&gt;it says it cannon instantiate I
&lt;br&gt;&lt;br&gt;However, if I manually change the xml to be:
&lt;br&gt;&amp;lt;i class=&amp;quot;A&amp;quot;&amp;gt;...&amp;lt;/i&amp;gt;
&lt;br&gt;&lt;br&gt;Then it works happily.
&lt;br&gt;&lt;br&gt;This seems very much like the behaviour for collections. Is there any &amp;nbsp;
&lt;br&gt;way to specify this for single objects? i.e. to ask that when it is &amp;nbsp;
&lt;br&gt;serialised, it is as the interface, with the class appended?
&lt;br&gt;&lt;br&gt;I realise on thinking about it that it's probably often bad design to &amp;nbsp;
&lt;br&gt;put this in the class (especially if it could implement several &amp;nbsp;
&lt;br&gt;interfaces etc.). But is there a way to ask the persister to serialise &amp;nbsp;
&lt;br&gt;based on a certain interface?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;dave
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;The University of Edinburgh is a charitable body, registered in
&lt;br&gt;Scotland, with registration number SC005336.
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25959364&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%28De%29serialising-classes-conforming-to-an-interface-tp25959364p25959364.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25938118</id>
	<title>Re: How to represent nodes that have same element name, but different structure</title>
	<published>2009-10-17T06:04:20Z</published>
	<updated>2009-10-17T06:04:20Z</updated>
	<author>
		<name>Niall Gallagher-2</name>
	</author>
	<content type="html">&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot; style=&quot;font: inherit;&quot;&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I think you would need two classes to do this with Simple currently. Free text in the body can be done with the @Text annotation, however it can not be combined with the @Element annotation. You could do it with some hacking in the Strategy, but it would not be very nice.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Niall&lt;BR&gt;&lt;BR&gt;--- On &lt;B&gt;Sat, 10/17/09, Andy Barlow [Deftex] &lt;I&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25938118&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andy.barlow@...&lt;/a&gt;&amp;gt;&lt;/I&gt;&lt;/B&gt; wrote:&lt;BR&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE style=&quot;PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid&quot;&gt;&lt;BR&gt;From: Andy Barlow [Deftex] &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25938118&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andy.barlow@...&lt;/a&gt;&amp;gt;&lt;BR&gt;Subject: [Simple-support] How to represent nodes that have same element name, but different structure&lt;BR&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25938118&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;&lt;BR&gt;Date: Saturday, October 17, 2009, 3:20 AM&lt;BR&gt;&lt;BR&gt;
&lt;DIV id=yiv1192969151&gt;
&lt;DIV&gt;
&lt;DIV&gt;I've looked through the Tutorials and found no obvious answer to this.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;I use an SMS provider which has a RESTful API for sending text and voice SMS messages.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;The XML posted differs as follows, depending on the type of SMS you want to send:&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;An example voice send would look something like:&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;message&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;to&amp;gt;0123456789&amp;lt;/to&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;type&amp;gt;Voice&amp;lt;/type&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;body&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;lang&amp;gt;en-GB&amp;lt;/lang&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;text&amp;gt;This is a Voice message&amp;lt;/text&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;/body&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;/message&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;An example SMS send would look something like:&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;message&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;to&amp;gt;0123456789&amp;lt;/to&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;type&amp;gt;SMS&amp;lt;/type&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;body&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;This is a SMS message&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;/body&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;/message&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;In the Voice SMS XML, the &amp;lt;body&amp;gt; element contains two child elements: in the text XML, it just contains text.
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;How could this be represented in a single Java class, given the &amp;lt;body&amp;gt; element differs depending on the type?&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;Whilst I could see how you could put this into two classes and get the serialised result (XML) you wanted, how would you know how to deserialise it out of the XML without knowing in advance which type of message you were dealing with?&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;I'm new to this, so please forgive me if there is an obvious answer in the online documentation!&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;
&lt;DIV&gt;
&lt;DIV id=signatureblock&gt;&lt;SPAN id=signed&gt;Regards,&lt;BR&gt;Andy Barlow&lt;/SPAN&gt; &lt;BR&gt;&lt;BR&gt;
&lt;DIV id=disclaimer&gt;The information in this email or facsimile is confidential and is intended solely for the addressee(s) and access to this email or facsimile by anyone else is unauthorised. If you are not the intended recipient then any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Information expressed in this email or facsimile is not given or endorsed by my firm or employer unless otherwise indicated by an authorised representative independent of this message.&lt;/DIV&gt;&lt;BR&gt;
&lt;TABLE id=address cellSpacing=0&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TD&gt;Deftex Limited&lt;/TD&gt;
&lt;TD align=right&gt;Computer Consultancy&lt;/TD&gt;&lt;/TR&gt;&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD align=right&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Andy Barlow MBCS CENG EURING CITP&lt;/TD&gt;
&lt;TD align=right&gt;Deftex Limited&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Consultant&lt;/TD&gt;
&lt;TD align=right&gt;High Riding&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD align=right&gt;Richmond&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD align=right&gt;North Yorkshire&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD align=right&gt;DL10 5BN&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;DIV id=skypebutton&gt;&lt;A href=&quot;skype:andybarlow285?call&quot; target=_blank rel=&quot;nofollow&quot;&gt;&lt;IMG style=&quot;BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none&quot; height=52 alt=&quot;Skype Meª!&quot; src=&quot;http://download.skype.com/share/skypebuttons/buttons/call_blue_white_124x52.png&quot; width=124&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;/TD&gt;
&lt;TD align=right&gt;skype: andybarlow285&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;A href=&quot;http://us.mc331.mail.yahoo.com/mc/compose?to=andy.barlow@deftex.co.uk&quot; target=_blank rel=&quot;nofollow&quot; ymailto=&quot;mailto:andy.barlow@deftex.co.uk&quot;&gt;andy.barlow@...&lt;/A&gt;&lt;/TD&gt;
&lt;TD align=right&gt;tel: +44 (0)208 123 6285&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;A href=&quot;http://www.deftex.co.uk/&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://www.deftex.co.uk&lt;/A&gt;&lt;/TD&gt;
&lt;TD align=right&gt;mobile: +44 (0)7830 302 268&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR&gt;-----Inline Attachment Follows-----&lt;BR&gt;&lt;BR&gt;
&lt;DIV class=plainMail&gt;------------------------------------------------------------------------------&lt;BR&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA&lt;BR&gt;is the only developer event you need to attend this year. Jumpstart your&lt;BR&gt;developing skills, take BlackBerry mobile applications to market and stay &lt;BR&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!&lt;BR&gt;&lt;A href=&quot;http://p.sf.net/sfu/devconference&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/A&gt;&lt;/DIV&gt;&lt;BR&gt;-----Inline Attachment Follows-----&lt;BR&gt;&lt;BR&gt;
&lt;DIV class=plainMail&gt;_______________________________________________&lt;BR&gt;Simple-support mailing list&lt;BR&gt;&lt;A href=&quot;http://us.mc331.mail.yahoo.com/mc/compose?to=Simple-support@lists.sourceforge.net&quot; ymailto=&quot;mailto:Simple-support@lists.sourceforge.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=_blank rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/A&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;

&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25938118&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-represent-nodes-that-have-same-element-name%2C-but-different-structure-tp25937094p25938118.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25938081</id>
	<title>Re: Support for polymorphism/inheritance</title>
	<published>2009-10-17T05:56:50Z</published>
	<updated>2009-10-17T05:56:50Z</updated>
	<author>
		<name>Niall Gallagher-2</name>
	</author>
	<content type="html">&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot; style=&quot;font: inherit;&quot;&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I think this can be done, in fact I took a look at this recently. I hope I can release a version that makes this easy to do shortly. Perhaps in the next release, which should be a couple of weeks.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Niall&lt;BR&gt;&lt;BR&gt;--- On &lt;B&gt;Sat, 10/17/09, Andy Barlow [Deftex] &lt;I&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25938081&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andy.barlow@...&lt;/a&gt;&amp;gt;&lt;/I&gt;&lt;/B&gt; wrote:&lt;BR&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE style=&quot;PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid&quot;&gt;&lt;BR&gt;From: Andy Barlow [Deftex] &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25938081&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andy.barlow@...&lt;/a&gt;&amp;gt;&lt;BR&gt;Subject: [Simple-support] Support for polymorphism/inheritance&lt;BR&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25938081&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;&lt;BR&gt;Date: Saturday, October 17, 2009, 2:19 AM&lt;BR&gt;&lt;BR&gt;
&lt;DIV id=yiv1103553889&gt;
&lt;DIV&gt;I read with interest the following message in the archive:&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;A href=&quot;https://sourceforge.net/mailarchive/message.php?msg_name=4ABD3696.9080107%40mail.usask.ca&quot; target=_blank rel=&quot;nofollow&quot;&gt;https://sourceforge.net/mailarchive/message.php?msg_name=4ABD3696.9080107%40mail.usask.ca&lt;/A&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;I am encountering a similar issue and wondered if there was a task on the Simple XML roadmap to tackle polymorphism/inheritance.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;Simply put:&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;i) &lt;SPAN class=Apple-tab-span style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;Say you have a parent class or interface called Task&lt;/DIV&gt;
&lt;DIV&gt;ii)&lt;SPAN class=Apple-tab-span style=&quot;WHITE-SPACE: pre&quot;&gt; &lt;/SPAN&gt;You have two classes ThisTask and ThatTask that either extent the class or implement the interface&lt;/DIV&gt;
&lt;DIV&gt;iii)&lt;SPAN class=Apple-tab-span style=&quot;WHITE-SPACE: pre&quot;&gt; &lt;/SPAN&gt;In another class I have a ListofTasks which is a List&amp;lt;Task&amp;gt;, and that list can (of course) contain any number of ThisTask's and ThatTask's in any order (not too bothered about the order, as I understand XML parsers cannot guarantee node ordering)&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;What I'd LIKE to see in the XML when serialised is something like:&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;ListofTasks&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=Apple-tab-span style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;&amp;lt;ThisTask/&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=Apple-tab-span style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;&amp;lt;ThatTask/&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=Apple-tab-span style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;&amp;lt;ThisTask/&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN class=Apple-tab-span style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;&amp;lt;ThisTask/&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN class=Apple-tab-span style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;&amp;lt;ThatTask/&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN class=Apple-tab-span style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;&amp;lt;ThatTask/&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN class=Apple-tab-span style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;&amp;lt;ThatTask/&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;lt;/ListofTasks&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;What I actually get is&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV id=signatureblock&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV id=signatureblock&gt;
&lt;DIV&gt;&amp;lt;ListofTasks&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=Apple-tab-span style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;&amp;lt;Task class=&quot;ThisTask&quot;/&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=Apple-tab-span style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;&amp;lt;Task class=&quot;ThatTask&quot;/&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=Apple-tab-span style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;&amp;lt;Task class=&quot;ThisTask&quot;/&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN class=Apple-tab-span style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;&amp;lt;Task class=&quot;ThisTask&quot;/&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN class=Apple-tab-span style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;&amp;lt;Task class=&quot;ThatTask&quot;/&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN class=Apple-tab-span style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;&amp;lt;Task class=&quot;ThatTask&quot;/&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN class=Apple-tab-span style=&quot;WHITE-SPACE: pre&quot;&gt;&lt;/SPAN&gt;&amp;lt;Task class=&quot;ThatTask&quot;/&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;lt;/ListofTasks&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;Since I'm working from the XML as a master (the actual XML is more complicated than this, but I've simplified to illustrate the issue), I currently have no choice but to change the structure of the top-level class, so instead of:&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;List&amp;lt;Task&amp;gt; tasks = ArrayList&amp;lt;Task&amp;gt;();&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;I have to have a member variable for each type of task:&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;List&amp;lt;ThisTask&amp;gt; thisTasks = ArrayList&amp;lt;ThisTask&amp;gt;();&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;List&amp;lt;ThatTask&amp;gt; thatTasks = ArrayList&amp;lt;ThatTask&amp;gt;();&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;so I when I deserialise and then serialise the XML is the same.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I saw a reply from Niall mentioning how this could be resolved.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;Is this on the roadmap and is there a timeline?&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV id=signatureblock&gt;&lt;SPAN id=signed&gt;Regards,&lt;BR&gt;Andy Barlow&lt;/SPAN&gt; &lt;BR&gt;&lt;BR&gt;
&lt;DIV id=disclaimer&gt;The information in this email or facsimile is confidential and is intended solely for the addressee(s) and access to this email or facsimile by anyone else is unauthorised. If you are not the intended recipient then any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Information expressed in this email or facsimile is not given or endorsed by my firm or employer unless otherwise indicated by an authorised representative independent of this message.&lt;/DIV&gt;&lt;BR&gt;
&lt;TABLE id=address cellSpacing=0&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TD&gt;Deftex Limited&lt;/TD&gt;
&lt;TD align=right&gt;Computer Consultancy&lt;/TD&gt;&lt;/TR&gt;&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD align=right&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Andy Barlow MBCS CENG EURING CITP&lt;/TD&gt;
&lt;TD align=right&gt;Deftex Limited&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Consultant&lt;/TD&gt;
&lt;TD align=right&gt;High Riding&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD align=right&gt;Richmond&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD align=right&gt;North Yorkshire&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD align=right&gt;DL10 5BN&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;DIV id=skypebutton&gt;&lt;A href=&quot;skype:andybarlow285?call&quot; target=_blank rel=&quot;nofollow&quot;&gt;&lt;IMG style=&quot;BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none&quot; height=52 alt=&quot;Skype Meª!&quot; src=&quot;http://download.skype.com/share/skypebuttons/buttons/call_blue_white_124x52.png&quot; width=124&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;/TD&gt;
&lt;TD align=right&gt;skype: andybarlow285&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;A href=&quot;http://us.mc331.mail.yahoo.com/mc/compose?to=andy.barlow@deftex.co.uk&quot; target=_blank rel=&quot;nofollow&quot; ymailto=&quot;mailto:andy.barlow@deftex.co.uk&quot;&gt;andy.barlow@...&lt;/A&gt;&lt;/TD&gt;
&lt;TD align=right&gt;tel: +44 (0)208 123 6285&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;A href=&quot;http://www.deftex.co.uk/&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://www.deftex.co.uk&lt;/A&gt;&lt;/TD&gt;
&lt;TD align=right&gt;mobile: +44 (0)7830 302 268&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR&gt;-----Inline Attachment Follows-----&lt;BR&gt;&lt;BR&gt;
&lt;DIV class=plainMail&gt;------------------------------------------------------------------------------&lt;BR&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA&lt;BR&gt;is the only developer event you need to attend this year. Jumpstart your&lt;BR&gt;developing skills, take BlackBerry mobile applications to market and stay &lt;BR&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!&lt;BR&gt;&lt;A href=&quot;http://p.sf.net/sfu/devconference&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/A&gt;&lt;/DIV&gt;&lt;BR&gt;-----Inline Attachment Follows-----&lt;BR&gt;&lt;BR&gt;
&lt;DIV class=plainMail&gt;_______________________________________________&lt;BR&gt;Simple-support mailing list&lt;BR&gt;&lt;A href=&quot;http://us.mc331.mail.yahoo.com/mc/compose?to=Simple-support@lists.sourceforge.net&quot; ymailto=&quot;mailto:Simple-support@lists.sourceforge.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=_blank rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/A&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;



&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25938081&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Support-for-polymorphism-inheritance-tp25936723p25938081.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25938035</id>
	<title>Re: Dyanmic XML Tag name</title>
	<published>2009-10-17T05:49:46Z</published>
	<updated>2009-10-17T05:49:46Z</updated>
	<author>
		<name>Niall Gallagher-2</name>
	</author>
	<content type="html">&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot; style=&quot;font: inherit;&quot;&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Ya, you can do this&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;public class MyEntry implements Entry{&lt;/DIV&gt;
&lt;DIV&gt;@Element String name&lt;/DIV&gt;
&lt;DIV&gt;@Element int age;&lt;/DIV&gt;
&lt;DIV&gt;@Element String designation;&lt;/DIV&gt;
&lt;DIV&gt;public String getName() {&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp; return name;&lt;/DIV&gt;
&lt;DIV&gt;}&lt;/DIV&gt;
&lt;DIV&gt;}&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Then annotate like so.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;@ElementList(entry=&quot;row&quot;, inline = true)&lt;/DIV&gt;
&lt;DIV&gt;public Dictionary&amp;lt;Entry&amp;gt; list&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;The org.simpleframework.xml.util.Dictionary object is a list that can get entry object using the entry name, via getEntry. Its like a map. If this is not suitable. Then just use any collection of your choice. And provide a typed object as the entry. This will give you the desired XML.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Niall&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;--- On &lt;B&gt;Wed, 10/14/09, Donzil Pinto &lt;I&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25938035&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dpinto@...&lt;/a&gt;&amp;gt;&lt;/I&gt;&lt;/B&gt; wrote:&lt;BR&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE style=&quot;PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid&quot;&gt;&lt;BR&gt;From: Donzil Pinto &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25938035&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dpinto@...&lt;/a&gt;&amp;gt;&lt;BR&gt;Subject: [Simple-support] Dyanmic XML Tag name&lt;BR&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25938035&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;simple-support@...&lt;/a&gt;&lt;BR&gt;Date: Wednesday, October 14, 2009, 6:11 AM&lt;BR&gt;&lt;BR&gt;
&lt;DIV id=yiv967797425&gt;


&lt;DIV class=Section1&gt;
&lt;P class=MsoNormal&gt;Hi&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;We have been using Simple for XML serialization.&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;In one of our requirements, we need to create an xml file of the data fetched from a table.&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;For e.g.&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;A table with name “EMP_DET” has 3 columns (Name, Age, Designation).&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;The resulting xml file should be as follows&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;…&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;lt;row&amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Name&amp;gt;John Doe&amp;lt;/Name&amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Age&amp;gt;31&amp;lt;/Age&amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Designation&amp;gt;Manager&amp;lt;/Designation&amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;lt;/row&amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;….&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;On using&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #646464; FONT-FAMILY: 'Courier New'&quot;&gt;@ElementMap&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'&quot;&gt;(inline=&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #7f0055; FONT-FAMILY: 'Courier New'&quot;&gt;true&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'&quot;&gt;, attribute=&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #7f0055; FONT-FAMILY: 'Courier New'&quot;&gt;false&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'&quot;&gt;)&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'&quot;&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #7f0055; FONT-FAMILY: 'Courier New'&quot;&gt;private&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'&quot;&gt; Map&amp;lt;&lt;SPAN style=&quot;BACKGROUND: blue&quot;&gt;S&lt;/SPAN&gt;tring, String&amp;gt; &lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: #0000c0; FONT-FAMILY: 'Courier New'&quot;&gt;Columns&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'&quot;&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;We are getting the output as follows&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;…&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;lt;row&amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;entry&amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;String&amp;gt;Name&amp;lt;/ String &amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt; String &amp;gt;John Doe&amp;lt;/ String &amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal style=&quot;TEXT-INDENT: 0.5in&quot;&gt;&amp;lt;/entry&amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;entry&amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;String&amp;gt;Age&amp;lt;/ String &amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt; String &amp;gt;31&amp;lt;/ String &amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal style=&quot;TEXT-INDENT: 0.5in&quot;&gt;&amp;lt;/entry&amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;entry&amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;String&amp;gt; Designation &amp;lt;/ String &amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt; String &amp;gt; Manager &amp;lt;/ String &amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal style=&quot;TEXT-INDENT: 0.5in&quot;&gt;&amp;lt;/entry&amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;lt;/row&amp;gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;….&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;Appreciate if you can let us know of any approach that will help to get the desired XML output.&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;Regards&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Times New Roman', 'serif'&quot;&gt;______________________________________________________________________________________&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Arial', 'sans-serif'&quot;&gt; &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: 'Arial', 'sans-serif'&quot;&gt;Donzil Pinto &lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: 'Arial', 'sans-serif'&quot;&gt;|&amp;nbsp;Sr. Technical Architect – Products &amp;amp; Technology &lt;BR&gt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: 'Arial', 'sans-serif'&quot;&gt;S Y S T I M E &lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: 'Arial', 'sans-serif'&quot;&gt;| Office: +91 22&amp;nbsp;2778&amp;nbsp;3100: Extn 5345&amp;nbsp;| Mobile: +91 9833 204935 &lt;BR&gt;Office Board: +91 22&amp;nbsp;2778&amp;nbsp;3100&amp;nbsp;|&amp;nbsp;Fax:&amp;nbsp;+91 22 27782291&lt;BR&gt;Email: &lt;A href=&quot;http://us.mc331.mail.yahoo.com/mc/compose?to=dpinto@SYSTIME.net&quot; target=_blank rel=&quot;nofollow&quot; ymailto=&quot;mailto:dpinto@SYSTIME.net&quot;&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;dpinto@...&lt;/SPAN&gt;&lt;/A&gt; | Website: &lt;A href=&quot;http://www.systime.net/&quot; target=_blank rel=&quot;nofollow&quot;&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;www.SYSTIME.net&lt;/SPAN&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Arial', 'sans-serif'&quot;&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-SIZE: 7.5pt; FONT-FAMILY: 'Arial', 'sans-serif'&quot;&gt;&lt;IMG id=Picture_x0020_1 height=118 alt=cid:image003.jpg@01C96CB9.73C66060 src=&quot;http://old.nabble.com/attachment/25938035/0/image001.jpg&quot; width=388 border=0&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style=&quot;FONT-SIZE: 7.5pt; FONT-FAMILY: 'Arial', 'sans-serif'&quot;&gt;&lt;BR&gt;&lt;SPAN style=&quot;COLOR: black&quot;&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;Please &lt;A href=&quot;http://www.systime.net/confidentiality-statement.asp&quot; target=_blank rel=&quot;nofollow&quot;&gt;&lt;SPAN style=&quot;COLOR: blue&quot;&gt;click here&lt;/SPAN&gt;&lt;/A&gt; for the Confidentiality Statement.&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Arial', 'sans-serif'&quot;&gt;&lt;BR&gt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-SIZE: 9pt; COLOR: black&quot;&gt;______________________________________________________________________________________&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style=&quot;FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Arial', 'sans-serif'&quot;&gt; &lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: 'Arial', 'sans-serif'&quot;&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR&gt;-----Inline Attachment Follows-----&lt;BR&gt;&lt;BR&gt;
&lt;DIV class=plainMail&gt;------------------------------------------------------------------------------&lt;BR&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA&lt;BR&gt;is the only developer event you need to attend this year. Jumpstart your&lt;BR&gt;developing skills, take BlackBerry mobile applications to market and stay &lt;BR&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!&lt;BR&gt;&lt;A href=&quot;http://p.sf.net/sfu/devconference&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/A&gt;&lt;/DIV&gt;&lt;BR&gt;-----Inline Attachment Follows-----&lt;BR&gt;&lt;BR&gt;
&lt;DIV class=plainMail&gt;_______________________________________________&lt;BR&gt;Simple-support mailing list&lt;BR&gt;&lt;A href=&quot;http://us.mc331.mail.yahoo.com/mc/compose?to=Simple-support@lists.sourceforge.net&quot; ymailto=&quot;mailto:Simple-support@lists.sourceforge.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/A&gt;&lt;BR&gt;&lt;A href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=_blank rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/A&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;

&lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25938035&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dyanmic-XML-Tag-name-tp25937985p25938035.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25937094</id>
	<title>How to represent nodes that have same element name, but different structure</title>
	<published>2009-10-17T03:20:52Z</published>
	<updated>2009-10-17T03:20:52Z</updated>
	<author>
		<name>Andy Barlow [Deftex]</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;div&gt;&lt;div&gt;I've looked through the Tutorials and found no obvious answer to this.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I use an SMS provider which has a RESTful API for sending text and voice SMS messages.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The XML posted differs as follows, depending on the type of SMS you want to send:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;An example voice send would look something like:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;message&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;to&amp;gt;0123456789&amp;lt;/to&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;type&amp;gt;Voice&amp;lt;/type&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;body&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;lang&amp;gt;en-GB&amp;lt;/lang&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;text&amp;gt;This is a Voice message&amp;lt;/text&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;/message&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;An example SMS send would look something like:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;message&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;to&amp;gt;0123456789&amp;lt;/to&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;type&amp;gt;SMS&amp;lt;/type&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;body&amp;gt;&lt;/div&gt;&lt;div&gt;This is a SMS message&lt;/div&gt;&lt;div&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;/message&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;In the Voice SMS XML, the &amp;lt;body&amp;gt; element contains two child elements: in the text XML, it just contains text.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;How could this be represented in a single Java class, given the &amp;lt;body&amp;gt; element differs depending on the type?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Whilst I could see how you could put this into two classes and get the serialised result (XML) you wanted, how would you know how to deserialise it out of the XML without knowing in advance which type of message you were dealing with?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I'm new to this, so please forgive me if there is an obvious answer in the online documentation!&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div&gt;

  
  &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;http://www.sdxmessaging.com/css/signature.css&quot;&gt;	  
  &lt;div id=&quot;signatureblock&quot;&gt;
    &lt;span id=&quot;signed&quot;&gt;Regards,&lt;br&gt;
    Andy Barlow&lt;/span&gt;
    &lt;br&gt;
    &lt;br&gt;
    &lt;div id=&quot;disclaimer&quot;&gt;The information in this email or facsimile is confidential and is intended solely for the addressee(s) and access to this email or facsimile by anyone else is unauthorised. If you are not the intended recipient then any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Information expressed in this email or facsimile is not given or endorsed by my firm or employer unless otherwise indicated by an authorised representative independent of this message.&lt;/div&gt;
    &lt;br&gt;
    &lt;table cellspacing=&quot;0&quot; id=&quot;address&quot;&gt;
      &lt;thead&gt;&lt;tr&gt;&lt;td&gt;Deftex Limited&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;Computer Consultancy&lt;/td&gt;&lt;/tr&gt;&lt;/thead&gt;
      &lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Andy Barlow MBCS CENG EURING CITP&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;Deftex Limited&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Consultant&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;High Riding&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;Richmond&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;North Yorkshire&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;DL10 5BN&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;
            &lt;div id=&quot;skypebutton&quot;&gt;

&lt;a href=&quot;skype:andybarlow285?call&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;img src=&quot;http://download.skype.com/share/skypebuttons/buttons/call_blue_white_124x52.png&quot; style=&quot;border: none;&quot; width=&quot;124&quot; height=&quot;52&quot; alt=&quot;Skype Meª!&quot;&gt;&lt;/a&gt;&lt;/div&gt;
          &lt;/td&gt;&lt;td align=&quot;right&quot;&gt;skype: andybarlow285&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25937094&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andy.barlow@...&lt;/a&gt;&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;tel: +44 (0)208 123 6285&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;a href=&quot;http://www.deftex.co.uk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.deftex.co.uk&lt;/a&gt;&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;mobile: +44 (0)7830 302 268&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;


&lt;/div&gt;
&lt;br&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Simple-support mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25937094&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Simple-support@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/simple-support&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/simple-support&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-represent-nodes-that-have-same-element-name%2C-but-different-structure-tp25937094p25937094.html" />
</entry>

</feed>
