Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2008
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post insertion and search into a xml file(javascript)

    hi everyone...
    I need javascript code for inserting values and searching for a value in a xmlfile like as shown below.
    i need this script to be run in mozilla firefox browser.
    So please write javascript code in such format...
    <database>
    <hash1>
    a9993e364706816aba3e25717850c26c9cd0d89d
    </hash1>
    <hash2>
    c22b5f9178342609428d6f51b2c5af4c0bde6a42
    </hash2>
    </database>


    thanks in advance...

  • #2
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,461
    Thanks
    1
    Thanked 23 Times in 21 Posts
    Is the XML available as a DOM document?

    I suggest you become familiar with DOMParser and XMLSerializer, as well as the Document Object Model Level 3 Core specification.
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •