Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > A problem with XML Declaration

Reply
Thread Tools

A problem with XML Declaration

 
 
nilayenator@gmail.com
Guest
Posts: n/a
 
      12-05-2006
I'm relatively new to XML and facing many simple problems.Can somebody
help me please??? Here is the Error message that comes when I try to
validate my XML File in XML Spy:

Character '<' is grammatically unexpected in column 1 at line 1


And here is the Part of the Code:

<?xml version="1.0" encoding="UTF-8"?>
<Projects>
<presentProjects>
<project>
<projectName>IDEAS</projectName>
<projectDesc>Research and development in partnership with Physics
faculty to engage 4th-6th grade children after school with astronomy
and space science resources and computer and video technologies to
create projects of their choosing</projectDesc>
<image/>
<organization>NASA-Space Telescope Science Institute</organization>
<projectDuration>2006-2008</projectDuration>
</project>
<project>
:
:
:
:
:
:

 
Reply With Quote
 
 
 
 
Richard Tobin
Guest
Posts: n/a
 
      12-05-2006
In article <. com>,
<> wrote:

>I'm relatively new to XML and facing many simple problems.Can somebody
>help me please??? Here is the Error message that comes when I try to
>validate my XML File in XML Spy:
>
>Character '<' is grammatically unexpected in column 1 at line 1


There's nothing obviously wrong with the file you posted, so it's
probably something that doesn't show up, like some whitespace before
the XML declaration (though why in that case it would say the < is in
column 1, line 1, I don't know).

Try running your file through some other validator, such as RXP:

http://www.cogsci.ed.ac.uk/~richard/rxp.html

-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
 
Reply With Quote
 
 
 
 
Andy Dingley
Guest
Posts: n/a
 
      12-05-2006

wrote:
> I'm relatively new to XML and facing many simple problems.Can somebody
> help me please??? Here is the Error message that comes when I try to
> validate my XML File in XML Spy:



Find a better editor or validator than XML Spy (try a free one!)

IMHE, one of the worst things about XML Spy was its habit of giving you
errors of the form "Diddly-squat somewhere near here" and no real idea
as to what was wrong or where.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a static function declaration conflict with a non-static declaration? nospam_timur@tabi.org C Programming 4 12-12-2006 10:26 PM
maxplusII error: a deferred constant declaration without a full declaration is not supported Noah VHDL 5 04-07-2006 02:34 PM
"virtual outside class declaration" and "declaration does not declare anything" kelvSYC C++ 6 05-17-2005 08:58 AM
Function declaration in class declaration Ovidesvideo C++ 4 12-10-2004 06:36 PM
Intel C++ 8.0 : declaration hides declaration Alex Vinokur C++ 4 04-05-2004 09:49 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57