Page 1 of 1

valid text for xml

Posted: Wed May 13, 2009 5:40 am
by fabby
Hi.
I want to generate an xml file, with data from mysql. If i do that, i recieve an error from the browser:

XML Parsing Error: undefined entity
Location: http://localhost/file.txt
Line Number 507, Column 463:

is there a function to validate text for xml.
thanks.

Re: valid text for xml

Posted: Wed May 13, 2009 10:46 am
by Christopher
What's at "Line Number 507, Column 463:" ?

Re: valid text for xml

Posted: Wed May 13, 2009 12:58 pm
by fabby
<Descriere>LATITUDE E4300 Display 13.3in WXGA(1280X800), Webcam 0.3MP, Intel Core 2 Duo SP9300 (2.26GHz,1066MHz,6MB) Latitude ON Reader, no WWAN, Memorie 2GB (1x2048) 800MHz DDR3 Dual Channel, HDD 160GB Serial ATA (7200RPM) Free Fall Sensor, BLACK 8X DVD+/-RW Drive, Roxio Creator 9.0 Software (XP & Vista Compatible) with Recovery CD, baterie 6-cell 56W/HR LI-ION, Dell Wireless 365 Bluetooth, Dell WLAN 1397 (802.11b/g) 1/2 MiniCard, Touchpad with UPEK&reg; Fingerprint Reader and Contactless Smartcard Reader, 90W AC Adaptor 2 pin,English Windows Vista Business SP1 to XP Pro SP3 Downgrade with XP SP3 Media, BLACK, NBD & ProSupport for End Users</Descriere>

Re: valid text for xml

Posted: Wed May 13, 2009 2:18 pm
by Christopher
My guess would the the &reg;. What DTD are you specfiying? You can add <!ENTITY reg "&#174;"> to the header or change &reg; to &#174;