View Full Version : Need help with XML parsing
nellement
Feb 23rd 2009, 10:58 am
Hello,everone I'm new here,i have problem viewing my site in internet Explorer browser,it works fine in firefox and opera thou,I saw that i need to parse XML,but how to do that so my XMl site could be viewed properly on IE,thanks in advance!
Syndication
Feb 23rd 2009, 11:07 am
Did you check with w3.org on XML compliance? They have a validation page over there that should help you out as far as making it cross-browser compliant.
gnp
Feb 23rd 2009, 5:31 pm
What do you mean XML site ? perhaps you mean XHTML site ?
or do you want to display some XML data ?
Also what is the problem you have viewing the site in IE ?
please provide more info so we can assist..
regards
nellement
Feb 24th 2009, 1:53 am
Hello,please check it out: theimpulsedesign dot com
open it with IE to see what I mean,dont know what is the problem.
gnp
Feb 24th 2009, 2:26 am
I am using IE 6, and the site seems to be working just fine...
( very beautiful site by the way )
Now your site does load some problematic XML indeed. (although my IE 6 seems to have no problem with it...)
the file http://theimpulsedesign.com/xml/portfolio.xml is not well formed..
the structure is
<collection>
<gallery title="2D WORKS">
<image ..>..</image>
.....
</gallery>
<gallery title="3D WORKS">
<image ..>..</image>
.....
</gallery>
</collection>
well.. you are missing the last two tags..
You do not close the second gallery tag and you do not close the collection tag
hope this helps
nellement
Feb 24th 2009, 2:32 am
Hey,thanks,would be great if you could help me to fix that code,thanks in advance!
nellement
Feb 24th 2009, 2:58 am
Thanks,i have fixed the gallery code
gnp
Feb 24th 2009, 3:38 am
Great :cool:
are there more issues ?
nellement
Feb 24th 2009, 3:40 am
no probs anymore,can you please tell me how to add RSS feed to XML sites is there any tutorial about that you can recommend me,thanks again.
gnp
Feb 24th 2009, 3:50 am
Well..
an RSS is an XML file with a specific structure..
take a look at w3schools ( http://www.w3schools.com/rss/rss_intro.asp )
and http://cyber.law.harvard.edu/rss/rss.html
nellement
Feb 24th 2009, 3:22 pm
Thanks for tips,no I have another big problem,I have used html validator firefox addon to check my page,and i fixed the mistakes in code,now the problem is when I add DOCUMENTTYPE code,when i view it in Browser my whole site goes up and the only part which can be seen is the sound bar at the bottom of the site,please tell me what is correct DOCUMENTYPE for my website,that will not make my website look like that,its the problem in doctype when i remove it it looks normal,please help thanks in advance.
nellement
Feb 25th 2009, 2:10 am
Please guys help me fix this problem.
gnp
Feb 25th 2009, 4:19 am
Hmm...
the most important (a glaring one)..
you have the <html> tag at the end of your document instead of the start... and you never close it as well..
another thing (not an error, but redundant) is that you have your analytics code 5 times in there ...
once should be enough
take care
nellement
Feb 25th 2009, 4:20 am
i'm totally noob at this can you please show me the code as before,thanks in advance.
gnp
Feb 25th 2009, 4:25 am
well a normal document structure is
<html>
<head>
<title>...</title>
<!-- other elements that go in the head section here -->
</head>
<body>
<!-- CONTENT OF THE PAGE -->
</body>
</html>
but you have
<!-- YOU ARE MISSING THE STARTING HTML TAG HERE -- YOU SHOULD PUT A <html> HERE -->
<head>
<title>...</title>
<!-- other elements that go in the head section here -->
</head>
<body>
<!-- CONTENT OF THE PAGE -->
</body>
<html> <!-- YOU HAVE THE START OF THE HTML HERE -- IT SHOULD BE </html> -->
hope this helps a bit
nellement
Feb 25th 2009, 4:47 am
hey,thanks can you please,check it out again,i've fixed more stuff and have just one error for doctype
gnp
Feb 25th 2009, 4:51 am
it should be <html> not <xhtml>
nellement
Feb 25th 2009, 4:56 am
but when i putted xhtml it show no more errors like before, all they sudenly gone with xhtml
nellement
Feb 25th 2009, 4:58 am
it shows that xhtml tag is valid
gnp
Feb 25th 2009, 5:00 am
.. yes but there is no xhtml tag ..
put replace xhtml with html and go from there..
also know that some errors that the validator finds can cause everything after that error to seems like an error .. and it will show too many errors when in reality there is only one..
so always try to fix the errors from the top down ..
nellement
Feb 25th 2009, 5:03 am
when I put html tag it shows large amount of errors dontknow what to do,can you help me with DOCTYPE issue,when i insert doctype tag tried all versions of that tag in my code,when i preview it with doctype code my site looks like its pushe to the top of the browser only showing the bootom of it.
gnp
Feb 25th 2009, 7:01 am
your code has errors and that is what the validators sees..
You still have not fixed the ending html tag </html> at the end of your code..
you have attributes like mce_href which do not exist..
you close your meta and link tags with /> but that is valid only if your page is xhtml
you use leftmarign and similar tags on body, but this attributes belong to html 3.2 code
select which doctype you want to validate against, then check the errors and read the descriptions .. they usually explain what the problem is exactly..
once you have a correctly structured page and do not understand what an error is then post here for more info
regards
nellement
Feb 25th 2009, 10:08 am
thanks again i will try again to fix what I can,thaks a lot
nellement
Feb 27th 2009, 7:26 am
Damn now I have more errors and the mydomainstats site doesn recognize my keywords and my description,I'm so annoyed by this,please check my website and help me if you can.
nellement
Mar 1st 2009, 5:46 pm
Hello,again fixed some errors,and I would like to suggest you to try to add any type of DOCTYPE code to my page source code and see what is happening to the website,than you will better understand and possibly help me.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.