On a related note, how does one handle mixed content?
Such as:
  <letter>
  Dear Mr.<name>John Smith</name>.
  Your order <orderid>1032</orderid>
  will be shipped on <shipdate>2001-07-13</shipdate>.
  </letter>

I cannot get JiBX to extract this as a string and at the same time map
the child elements to objects.

Any suggestions?

Thanks,
Geoff


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thomas
Jones-Low
Sent: Tuesday, October 11, 2005 8:42 AM
To: [email protected]
Subject: Re: [jibx-users] Handling markup inside attribute value?

Andy P wrote:
> Hi,
> 
> I have an XML document that looks like this:
> 
> <report
>       name="myreport"
>       reportVersion="1.1"
>       shortDescription="short description here"
>       longDescription="some text here. 
>       <P>
>       more text here."
> 
> .
> .
> </report>
> 
        As Mocky said, this won't work because it's badly formed XML. I
have written a custom (un)marsaller which will read and write full HMTL
(don't ask why). It may work for an attribute, but it may be better if
you can convert the long description into a full tag, then use the
custom (un)marsallar.
-- 
        Thomas Jones-Low            Softstart Services Inc.
        [EMAIL PROTECTED]      JobScheduler for Oracle
        Ph: 802-398-1012            http://www.softstart.com


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads,
discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to