Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XML
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 17th, 2006, 05:14 PM
Registered User
Join Date: Jan 2006
Location: jordan, amman, Jordan.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Search XMl File Problem :@

Iam trying this code for about 2 days. I can't find what is wrong, I just want to type a memeber name of family (in xml file) and then get the data about it...... plz help me(xml file is working fine)
<input type="text" name="search" style="width=100; height=20"/>
<input type="button" onclick="find()"/>
<div id="Output"></div>


function find()
  var XMLDoc = new ActiveXObject("Msxml2.DOMDocument.3.0")
  XMLDoc.async = false
  var str="/family/person[name='"document.all.search.value"']"
  var n1=selectNodes(str)
  var tstr="<table><tr><td>name</td><td>gender</td><td>age</td><td>mstatus</td><td>firstson</td><td>secondson</td><td>thirdson</td><td>fourthson</td><td>fifthson</td></tr>"

for(var i=0;i<n1.length;i++)
var cn=n1(i).childNodes
for(var j=0;j<cn.length;j++)


Reply With Quote
  #2 (permalink)  
Old February 1st, 2006, 05:16 AM
Authorized User
Join Date: Oct 2005
Location: , , Philippines.
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts

can you post the xml source?

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search and Replace a text in XML file AyatKh XML 17 May 23rd, 2012 09:05 PM
Parse/Load/Search xml file size near about 1 GB sandeep_akhare XML 4 September 19th, 2006 04:47 AM
Problem to create an xml file from two xml files saurabh_inblore XSLT 1 April 12th, 2006 02:58 AM
Search and display fields in XML file kts_33 XML 5 September 28th, 2004 08:17 AM
Search and display fields in XML file kts_33 Classic ASP XML 1 September 22nd, 2004 05:16 AM

All times are GMT -4. The time now is 10:16 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.