Expressing markup in Java XML property files: CDATA vs. escaped tags -


I am reading and writing Java property files in XML properties. HTML embedded in many asset values, which developers [[CDATA elements like:

  & lt; Entry key = "foo" & gt; & Lt;! Wrap in [CDATA [& lt; B & gt; Bar & lt; / B & gt; ]] & Gt; & Lt; / Entry & gt;  

However, when I load these properties in Java APIs and then write them in XML, it does not wrap these entries in CDATA elements, but avoid tags Is like:

   

Are these two formats homogeneous? Am I presenting any potential problems by changing the CDATA with the escaped tag?

is not equal, but by calling the text value getText () get receive.

However, I would like to ask you to abandon properties that JAXB in favor of the real XML - this is great, you would love it.

Nobody found good, so at least this:

Object -> XML:

Sun's Verbose Tutorial:


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -