Jump to content

TrudyD1474

Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

2 Neutral

About TrudyD1474

  • Rank
    Newbie

Contact Methods

  • Website URL
    http://eiijd.com
  • ICQ
    0

Profile Information

  • Location
    Columbia Basin, Washington
  1. Maybe this is a bit easier to read. It's formatted fine on IE but won't copy well here.The good test fields to start with would be Model and Category. <?xml version="1.0" encoding="UTF-8"?> -<machines> <dealer_family_id>9398</dealer_family_id> <timestamp>2012-Aug-21 09:27:01 CDT</timestamp>-<machine> <id>968208</id> -<images> -<image primary="true"> <filePointer>http://www.machinefinder.com/images/machines/08/968208/849054_large_51696.jpg</filePointer> </image> </images>-<options> -<option>
  2. TrudyD1474

    I'm befuddled

    I can get an XML feed from John Deere for our equipment. Using the following code, I am able to read the file. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Untitled Document</title></head><body><form name="feed" method="post" action="http://www.machinefinder.com/dealer_families/9398/machine_feed.xml" <http://www.machinefinder.com/dealer_fam
  3. Line 20 shows:for (i=0;i<x.length;i++)Apparantly the validator, etc. doesn't like the "<", so it thinks the ";" is an error should probably be ">". So there must be someplace to let this know that this is the correct format but I don't know where to look. Here are the first lines of code, is it there that I need to make the changes? I have no idea how to fix this. <?xml version="1.0" encoding="iso-8859-1"?><script type="text/javascript"> The validator also doesn't like line 18:document.write("</table>");It says "You may nave negelcted to close an element, or perh
  4. I ran my code through a xml validator. Below is what they gave me: Line3 File name: http://www.evergreen-implement.com/JD-xml3.xml Column: 33 Error: Can not find declaration of element 'script'. But it's there!!!!!! :facepalm: Error Position: <script type="text/javascript"> Line18 File name: http://www.evergreen-implement.com/JD-xml3.xml Column: 21 Error: Element type "x.length" must be followed by attribute specifications: ">" or "/>". This is exactly what's in the example. Error Position: for (i=0;i<x.length;i++) So the first error, it says the ">" is not t
  5. I need to add "KEY" and "PASSWORD" parameters to the following code taken from w3CSCHOOLS XML to HTML.Where and how would I do that? <?xml version="1.0" encoding="UTF-8"?><html><body><script type="text/javascript">if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.open("POST","http://www.machinefinder.com/dealer_families/9398/machine_feed.xml",false);xmlhttp.send();xmlDoc=xmlhttp.responseXML; document.write("<table borde
  6. Ok, I'm NEW. I've read through the xml on w3Schools several times.I'm getting the following error:XML Parsing Error: not well-formedLocation: http://www.evergreen-implement.com/JD-xml3.xmlLine Number 20, Column 20:for (i=0;i<x.length;i++)-------------------^The coding is exactly the same as in the xml example and I also read the loop information and that confirms this looks good.OBJECTIVE: John Deere has an xml file of our available used equipment. I want to list this on our site. I have the URL, KEY, and PASSWORD and they say that is all I need to know. John Deere Tech's comment is "W
  7. I have made the following change" xmlhttp.send("key=448a6970-a02e-012e-d5e6-005056be003c","password=Evergreen"); Now I get the following error (looks good to me): The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. --------------------------------------------------------------------------------A name contained an invalid character. Error processing resource 'http://www.evergreen-implement.com/JD-xml2.xml'. Line 20...for (i=0;i<x.length;i++)-------------------^
  8. I have read through the entire XML tutorial and am still confused. I think I pretty much understand how to deal with the XML once I get it, but I cant seem to read it. I am providing my code. I took the XML to HTML script example. I have changed the file name to the one I need to use. I have added a KEY and PASSWORD. In the coding below I have changed to KEY and PASSWORD. I don't know if I put those items in correctly. I have changed the writes to show two of the elements. I'm using an html extension. This is an XML file from John Deere containing all of our used equipment. I want t
×
×
  • Create New...