troubleshooting Question

modify script to handle child nodes

Avatar of newbie29
newbie29 asked on
19 Comments1 Solution1112 ViewsLast Modified:
I have a xml with quite a few child nodes, I normally have a flat xml file and whenever I would need to update xml fields
I would easily pass mulitple fields and values to the proxy.asp to process all the fields separated by "|"
The problem is If I would need to add extra node in a specific child node.

Just to make my point clear, say I have the following xml file

      <fname> john  </fname>
      <lname>  smith</lname>
            <book_title> adventure </book_title>
            <book_price> 343.00 </book_price>
      <contact> 234234 </contact>

I have a function in ASP to deal for the flat xml file but I am confused to update/modify the existing script
to handle the above situation, for example, if i want to add extra node in <book> like <book_last_updated>

The request I am doing is through ajax and following is the ajax syntax I have

           type: "POST",
           url: "some.asp",
           data: "action=save&uid="+id +"&values="+v+"|&fields=" + escape("book/bool_title|book/book_last_updated")

Please also have ASP script attached

Your help is much appreciated...

Join our community to see this answer!
Unlock 1 Answer and 19 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 19 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros