(Windows/UniVerse)
I do have an '.xsd'.
I can get either encoding (ISO-8850-1 or UTF-8) to work as long as I don't use
the 'standalone="yes"'.
However it is different than the download I get with the heading that COMES
WITH 'UTF-8'.

That download has a better 'structure' when it comes with UTF-8 than with
ISO-8850-1...
(When I change the ISO.. to the UTF it doesn't help the structure)
(partial snippets only).

<?xml version="1.0" encoding="UTF-8"?>
<VEHICLEPOSITIONS ticket="aaaaa_xxxxx">
    <VEHICLE ID="555">
        <LON>-122.65788</LON>
        <LAT>45.504333</LAT>
        <DATE>2006-01-26 20:58:25.0</DATE>
        <SPEED>0</SPEED>
        <DIRECTION>1</DIRECTION>
        <NAME>333</NAME>

<?xml version="1.0" encoding="ISO-8859-1"?>
<VEHICLEPOSITIONS ticket="aaaaa_xxxxx">     <VEHICLE ID="222">
    <LON>-122.70442</LON>         <LAT>45.545563</LAT>
      <DATE>2006-01-26 15:34:59.0</DATE>         <SPEED>0</SPEED>
    <DIRECTION>36</DIRECTION>         <NAME>1100</NAME>

And in the 2nd download I have to remove linefeeds before writing to the
file.

(p.s. Is there a convention for changing the heading?  I just replace and
append...)

thanks for your help,
Nancy

From: [EMAIL PROTECTED]
Subject: RE: [U2] Re: XML Issue - 'ISO-8859-1'

   The  standalone  attribute  is unrelated to the encoding attribute and
   tells  the  parser  that  a  DTD  is required or not. The attribute is
   optional  and  if  you  aren't using a DTD, leave it out. If you don't
   know  what a DTD is then you probably aren't using one - they're a way
   to validate the structure of an XML document but they're becoming less
   common  these  days  and  have  largely  been  replaced by xml schemas
   (.xsd).

   Also,  be  aware  that  UniVerse  without NLS uses an ISO-8859-1 based
   character  set. For example, XML documents generated by UniVerse which
   included  a  character greater than char(128) (eg "Cafi blend coffee")
   will   be misinterpreted by most XML parsers if the encoding attribute
   is set to UTF-8.

   Try using the following header:

   <?xml version="1.0" encoding="iso-8859-1"?>

Nancy Fisher
Peninsula Truck Lines, Inc
Auburn, Washington
253/929-2040
[EMAIL PROTECTED]
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to