XMLBeans doesn't preserve CDATA sections currently, it only preserves
the XML Infoset.
Radu
On Mon, 2008-01-28 at 15:06 -0800, bob bob wrote:
> Here is the original data;
> <CONFIG NAME="WORDISSUANCE" LIBRARY="Word Issuance">
> <DYNAMICJAVASCRIPT>ALLCAPS</DYNAMICJAVASCRIPT>
> <![CDATA[
> <!--
> Symbol Meaning Presentation Example
> ------ ------- ------------ -------
> G era designator (Text) AD
> y year (Number) 1996
> M month in year (Text & Number) July & 07
> d day in month (Number) 10
> h hour in am/pm (1~12) (Number) 12
> H hour in day (0~23) (Number) 0
> m minute in hour (Number) 30
> s second in minute (Number) 55
> S millisecond (Number) 978
> E day in week (Text) Tuesday
> D day in year (Number) 189
> F day of week in month (Number) 2 (2nd Wed in
> July)
> w week in year (Number) 27
> W week in month (Number) 2
> a am/pm marker (Text) PM
> k hour in day (1~24) (Number) 24
> K hour in am/pm (0~11) (Number) 0
> z time zone (Text) Pacific Standard
> Time
> ' escape for text (Delimiter)
> '' single quote (Literal) '
> -->
> ]]>
> <DATEFORMAT>yyyy-MM-dd</DATEFORMAT>
> ......
>
> When I load the xml in my xml beans object it turns it into;
> <CONFIG NAME="WORDISSUANCE" LIBRARY="Word Issuance">
> <DYNAMICJAVASCRIPT>ALLCAPS</DYNAMICJAVASCRIPT>
> <!--
> Symbol Meaning Presentation Example
> ------ ------- ------------ -------
> G era designator (Text) AD
> y year (Number) 1996
> M month in year (Text & Number) July &
> 07
> d day in month (Number) 10
> h hour in am/pm (1~12) (Number) 12
> H hour in day (0~23) (Number) 0
> m minute in hour (Number) 30
> s second in minute (Number) 55
> S millisecond (Number) 978
> E day in week (Text) Tuesday
> D day in year (Number) 189
> F day of week in month (Number) 2 (2nd Wed in
> July)
> w week in year (Number) 27
> W week in month (Number) 2
> a am/pm marker (Text) PM
> k hour in day (1~24) (Number) 24
> K hour in am/pm (0~11) (Number) 0
> z time zone (Text) Pacific Standard
> Time
> ' escape for text (Delimiter)
> '' single quote (Literal) '
> -->
> <DATEFORMAT>yyyy-MM-dd</DATEFORMAT>
> ....
> I tried the CDATA stuff in XMLOptions to no avail. Am I doing
> something wrong?
>
> XmlOptions validateOptions = new XmlOptions();
> validateOptions.setErrorListener(validationErrors);
> validateOptions.setSaveCDataEntityCountThreshold(5);
> validateOptions.setSaveCDataLengthThreshold(32);
> HashMap ns = new HashMap();
> ns.put("", "http://skywiresoftware.com/ccm/global");
> validateOptions.setLoadSubstituteNamespaces(ns);
> xmlini = XMLINIDocument.Factory.parse(new
> File("war/WEB-INF/xml/global.xml"), validateOptions);
>
> Help!
>
>
>
>
>
>
>
> ______________________________________________________________________
> Looking for last minute shopping deals? Find them fast with Yahoo!
> Search.
Notice: This email message, together with any attachments, may contain
information of BEA Systems, Inc., its subsidiaries and affiliated
entities, that may be confidential, proprietary, copyrighted and/or legally
privileged, and is intended solely for the use of the individual or entity
named in this message. If you are not the intended recipient, and have received
this message in error, please immediately return this by email and then delete
it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]