Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/07/2012, 20:20
Avatar de nibollo
nibollo
 
Fecha de Ingreso: julio-2012
Mensajes: 22
Antigüedad: 11 años, 10 meses
Puntos: 2
Pregunta Como crear y cargar una tabla que acepte caracteres especiales?.

Hola amigos les quisiera pedir una ayuda..

hace un tiempo cree una tabla tipo "text" y cree un XML para importar mis datos a MySql.. y resulta que al alzar el codigo me salta un error "El archivo XML especificado estaba incompleto o mal formado. Por favor corrija el problema e intente nuevamente."

y mi codigo es el siguiente..

Código MySQL:
Ver original
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. - phpMyAdmin XML Dump
  4. - version 3.4.5
  5. - http://www.phpmyadmin.net
  6. -
  7. - Servidor: localhost
  8. - Tiempo de generación: 02-07-2012 a las 20:07:42
  9. - Versión del servidor: 5.5.16
  10. - Versión de PHP: 5.3.8
  11. -->
  12.  
  13. <pma_xml_export version="1.0" xmlns:pma="http://www.phpmyadmin.net/some_doc_url/">
  14.     <!--
  15.     - Structure schemas
  16.     -->
  17.     <pma:structure_schemas>
  18.         <pma:database name="best" collation="latin1_swedish_ci" charset="latin1">
  19.             <pma:table name="links_images">
  20.                 CREATE TABLE `links_images` (
  21.                   `192x144` text NOT NULL
  22.                 ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  23.             </pma:table>
  24.         </pma:database>
  25.     </pma:structure_schemas>
  26.  
  27.     <!--
  28.     - Base de datos: 'best'
  29. <database name="best">
  30.         <!-- Tabla links_images -->
  31.       <table name="links_images">
  32. <column name="192x144">&lt;a href=http://localhost/best/7139324&gt;&lt;img src=http://www.google.com/19-7139324.jpg alt=Search Google title=Search Google /&gt;&lt;/a&gt;</column>
  33. </table>
  34.     </database>
  35. </pma_xml_export>
  36.     -->

Sera que me podrian dar una ayuda??.. No encuentro la solucion, por que tengo un codigo parecido a este y me alza con normalidad.

Código MySQL:
Ver original
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. - phpMyAdmin XML Dump
  4. - version 3.4.5
  5. - http://www.phpmyadmin.net
  6. -
  7. - Servidor: localhost
  8. - Tiempo de generación: 02-07-2012 a las 20:07:42
  9. - Versión del servidor: 5.5.16
  10. - Versión de PHP: 5.3.8
  11. -->
  12.  
  13. <pma_xml_export version="1.0" xmlns:pma="http://www.phpmyadmin.net/some_doc_url/">
  14.     <!--
  15.     - Structure schemas
  16.     -->
  17.     <pma:structure_schemas>
  18.         <pma:database name="best" collation="latin1_swedish_ci" charset="latin1">
  19.             <pma:table name="links_images">
  20.                 CREATE TABLE `links_images` (
  21.                   `192x144` text NOT NULL
  22.                 ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  23.             </pma:table>
  24.         </pma:database>
  25.     </pma:structure_schemas>
  26.  
  27.     <!--
  28.     - Base de datos: 'best'
  29. <database name="best">
  30.         <!-- Tabla links_images -->
  31.       <table name="links_images">
  32. <column name="192x144">&lt;a href=http://localhost/best/7139324&gt;</column>
  33. </table>
  34.     </database>
  35. </pma_xml_export>
  36.     -->

Gracias de antemano amigos.. Espero su ayuda..