valid text for xml

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fabby
Forum Commoner
Posts: 62
Joined: Tue Feb 15, 2005 1:06 am
Location: Romania
Contact:

valid text for xml

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: valid text for xml

Post by Christopher »

What's at "Line Number 507, Column 463:" ?
(#10850)
fabby
Forum Commoner
Posts: 62
Joined: Tue Feb 15, 2005 1:06 am
Location: Romania
Contact:

Re: valid text for xml

Post 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>
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: valid text for xml

Post 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;
(#10850)
Post Reply