1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need help with XML parsing

Discussion in 'JavaScript' started by nellement, Feb 23, 2009.

  1. #1
    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!
     
    nellement, Feb 23, 2009 IP
  2. Syndication

    Syndication Active Member

    Messages:
    351
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    90
    #2
    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.
     
    Syndication, Feb 23, 2009 IP
  3. gnp

    gnp Peon

    Messages:
    137
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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
     
    gnp, Feb 23, 2009 IP
  4. nellement

    nellement Active Member

    Messages:
    203
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    Hello,please check it out: theimpulsedesign dot com
    open it with IE to see what I mean,dont know what is the problem.
     
    nellement, Feb 24, 2009 IP
  5. gnp

    gnp Peon

    Messages:
    137
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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>
    
    Code (xml):
    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
     
    gnp, Feb 24, 2009 IP
  6. nellement

    nellement Active Member

    Messages:
    203
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #6
    Hey,thanks,would be great if you could help me to fix that code,thanks in advance!
     
    nellement, Feb 24, 2009 IP
  7. nellement

    nellement Active Member

    Messages:
    203
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #7
    Thanks,i have fixed the gallery code
     
    nellement, Feb 24, 2009 IP
  8. gnp

    gnp Peon

    Messages:
    137
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Great :cool:

    are there more issues ?
     
    gnp, Feb 24, 2009 IP
  9. nellement

    nellement Active Member

    Messages:
    203
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #9
    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.
     
    nellement, Feb 24, 2009 IP
  10. gnp

    gnp Peon

    Messages:
    137
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #10
    gnp, Feb 24, 2009 IP
  11. nellement

    nellement Active Member

    Messages:
    203
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #11
    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 24, 2009 IP
  12. nellement

    nellement Active Member

    Messages:
    203
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #12
    Please guys help me fix this problem.
     
    nellement, Feb 25, 2009 IP
  13. gnp

    gnp Peon

    Messages:
    137
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #13
    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
     
    gnp, Feb 25, 2009 IP
  14. nellement

    nellement Active Member

    Messages:
    203
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #14
    i'm totally noob at this can you please show me the code as before,thanks in advance.
     
    nellement, Feb 25, 2009 IP
  15. gnp

    gnp Peon

    Messages:
    137
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #15
    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>
    
    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> -->
    
    HTML:
    hope this helps a bit
     
    gnp, Feb 25, 2009 IP
  16. nellement

    nellement Active Member

    Messages:
    203
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #16
    hey,thanks can you please,check it out again,i've fixed more stuff and have just one error for doctype
     
    nellement, Feb 25, 2009 IP
  17. gnp

    gnp Peon

    Messages:
    137
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #17
    it should be <html> not <xhtml>
     
    gnp, Feb 25, 2009 IP
  18. nellement

    nellement Active Member

    Messages:
    203
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #18
    but when i putted xhtml it show no more errors like before, all they sudenly gone with xhtml
     
    nellement, Feb 25, 2009 IP
  19. nellement

    nellement Active Member

    Messages:
    203
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #19
    it shows that xhtml tag is valid
     
    nellement, Feb 25, 2009 IP
  20. gnp

    gnp Peon

    Messages:
    137
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #20
    .. 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 ..
     
    gnp, Feb 25, 2009 IP