Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Dealing with < and > characters in XML data

From: "Andy Dingley" <dingbat@----------.--->
To: NULL
Date: 8/3/2006 7:07:00 AM


seeCoolGuy wrote:

> I've been using Access to import some data straight into a sql server
> database by simply importing the xml file.

I'm not sure what "simply importing the xml file." means.

Does Access expect to see XML here, and _treat_it_as_ XML ?
Or will it expect to see CDATA here, and will thus encode it so as to
be suitable for inclusion inside XML (as CDATA), i.e. it'll convert to
&lt;

> it reads like the following
>
>   <TblPartDesriptions_to_translate>
>     <intpartid>79</intpartid>
>     <strpartdescription>Part Description Here</strpartdescription>
>     <strlongdescription>some really long text here
> m<sup>3</sup>/min.)</strlongdescription>
>   </TblPartDesriptions_to_translate>

_Does_ it read like this? This is what you'd expect, and I'd expect
other tools to then process it corrrectly.

However I suspect that Access may have helpfully(sic) delivered you
this instead:
<strlongdescription>some really long text here
m&lt;sup&gt;3&lt;/sup&gt;/min.)</strlongdescription>


> any help is appreciated, perhaps a modified xsl file?

XSL is rarely any use for this sort of problem. What you need is a very
clear mental model of what's text (i.e. CDATA), what's XML, and to make
sure that exactly the right type and number of encodings is applied
when moving between each.



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent