Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 5th, 2006, 12:25 AM
nilayenator@gmail.com
Guest
 
Posts: n/a
Default A problem with XML Declaration

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>
:
:
:
:
:
:

  #2  
Old December 5th, 2006, 12:35 AM
Richard Tobin
Guest
 
Posts: n/a
Default Re: A problem with XML Declaration

In article <1165279728.802409.252030@16g2000cwy.googlegroups. com>,
nilayenator@gmail.com <nilayyildiri@gmail.comwrote:
Quote:
>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.
  #3  
Old December 5th, 2006, 12:45 AM
Andy Dingley
Guest
 
Posts: n/a
Default Re: A problem with XML Declaration


nilayenator@gmail.com wrote:
Quote:
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.

 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles