Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. PleaseHelp1

    How to assign a value to xml node

    Here is the solution to my problem in both Mozzila and IE with the help of tsuji and BillyRayPreachersSon .... In IE simply use: xmlDoc.getElementsByTagName("SvcId")[0].text="some text here"; In Mozzila: 1- create a text node using document object var TextNode =...
  2. PleaseHelp1

    How to assign a value to xml node

    tsuji, FYI. xmlDoc.getElementsByTagName("SvcId")[0].text works for IE but not Mozzila. Would you know what is the majic to make it work for Mozzila? J
  3. PleaseHelp1

    How to assign a value to xml node

    BillyRayPreachersSon, If I use document.createCreateTextNode('abc') and try to append it to my xmlDoc, it will generate an error "Type mismatch". Thanks, J
  4. PleaseHelp1

    How to assign a value to xml node

    tsuji, Thanks for your first post "xmlDoc.getElementsByTagName("SvcId")[0].text="abc";" it works. However, on the second post, there is no misleading. Try it in your IE or Mozzila browser. You can create a text node using document.createTextNode but you ca not use your loaded xml document to...
  5. PleaseHelp1

    How to assign a value to xml node

    Thank you for the info and sorry about the typo. it is xmlDoc not xmlDoct and I have tried the code that you provided and it gives me error "Object does not support this property or method". The code works with document.createTextNode('some text here'), but it does not work with XMLDOM object...
  6. PleaseHelp1

    How to assign a value to xml node

    I need to modify a xml document... Using Javascript, I have loaded a xml file: xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async = SyncType; xmlDoc.load(xmlfile.xml); Lets say the xmlfile looks like this: <?xml version="1.0" ?> <Service> <SvcId/> <SvcName>Service...

Part and Inventory Search

Back
Top