invalid xml caracter

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

invalid xml caracter

Post by ol4pr0 »

Me seems to have troubles with displaying the date that comes from the database into a xml file..
besides the date the whole document is well formatted.

error
A name contained an invalid character. Error processing resource 'resulta.xml'. Line 3, Position 7

<dato="January 30 2004">
------^
xml

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<Caudat_xml>
	<dato="January 30 2004">
	</dato>
ect....

</Caudat_xml>
[/quote]
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Code: Select all

<dato="January 30 2004">
   </dato>
You've got an attribute but no containing element, it seems very strange, I would have expected to see:

Code: Select all

<dato value="January 30 2004" />
or

Code: Select all

<dato>January 30 2004</dato>
Mac
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

hehe how very dumb of me.
Post Reply