+ Reply to Thread
Results 1 to 3 of 3

Thread: Can't solve error with my html file when reading xml file(API) plz help

  1. #1
    kedatinh2121983
    Guest

    Can't solve error with my html file when reading xml file(API) plz help

    300.000 Free softwares download here
    In my html file i'm trying to read from an xml file which has the lat and lng of markers to display on google map. i do the following steps:



    var request = GXmlHttp.create();

    request.open("GET", "example.xml", true);

    request.onreadystatechange = function() {

    if (request.readyState == 4) {

    var xmlDoc = GXml.parse(request.responseText);

    // obtain the array of markers and loop through it



    var markers = xmlDoc.documentElement.getElementsByTagName("marker");







    and here in this step it appears the error and says:



    Error:'documentElement' is null or not an object....





    and i'm sure from the tag name and the file name.



    so is there any body has an answer for this error???



    plz help



    thanks
    More Information:
    1. I deleted them from the xml file thinking it wouldn't make a difference but got an error #1090 (XML parser failure)
    2. I've also decided to setup a site to help other ppl like me who wishes to split their xml file here:
    3. can u please help me to solve my probleme i am studying SQL in relation with XML and i must imoprt a XML file to SQL table
    4. NET class' properties; Create a configuration file for NHibernate to know how to connect to your database; Use the NHibernate API
    5. If we convert the xml format file into html format it consumes a lot of time
    6. You can also try editing the source file and edit the thumbnailsMenu clip and change the default xml configuration file within the read me layer with a custom xml
    7. You can simply drag a file to the Entourage icon in the Dock to add as attachment to a new or existing message, but if you want to create a Service so you can control

  2. #2
    khangninh2005
    Guest

    now i knew what's the problem but i can't solve too.



    the problem is that the html file can't find the xml file and it doesn't open it while it is in the same directory and even if iu put the whole path.



    is there any suggestions how can i solve this problem????
    More Information:
    1. it helps everyone to solve problems while creatinfg xml thanks
    2. Oh and btw, yes there are other files associated with this but didn't want to list ALL the code since I figure the error's in here
    3. 2) Once the sitemap file is generated how can I check it“s URL?? Thank you very much for your help
    4. The following works fine with me, using the "Very important" example from above with local xml and xslt files, named 'sample
    5. html" updating it in place and writing the error messages to the file "errs

+ Reply to Thread

Similar Threads

  1. How can I create an HTML file , that calls the data from an XML file?
    I have an XML file that includes 300 records with this format , XML Sample: unclassfied MERITTA HOTEL 10 th OF RAMADAN...
  2. Looking for a bulk email script - Timed emails reading from html file and text list.
    I need some kind of bulk email script that is set on my server which sends x,xxx emails per hour reading the mail from a html file and the addresses...
  3. Hear a PDF file instead of reading it
    Do you know? You can listen to any PDF instead of reading with Adobe Reader 7.0 or 6.0, and the short cut is: Ctrl shift b - to hear the...
  4. File Handling! Reading Text File!
    asp Code: Sub page_load(Sender As Object,e As EventArgs)   Dim filetoread as string   filetoread=server.mappath("Output.txt")   dim filestream as...
  5. how to include text file in .html file
    how to include text file in .html file. i know its easy question but i don know i guess syntax starts like this

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Welsh Yiddish