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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm looking for a browser based xml search utility...

Status
Not open for further replies.

getwithrob

Technical User
Mar 10, 2005
5
US
I'm looking for a browser based search utility to search a local xml file not the internet or a web site like google.....

Xpath is probably a requirement to do this. That's fine, it's just needs to be browser based and must search a local xml file.

 
quite easy to use xpath and contains() method, don't forget search will be case sensitive - so use transform to convert all to lowercase
 
I'm not a programmer like you. Is there some code or something already, somewhat, put together I can use to do this?
 
What are you searching it for and what do you expect it to return?

Jon

"Asteroids do not concern me, Admiral. I want that ship, not excuses.
 
The XML file has several thousand records exactly like what is shown below. This information contains port details of a Cisco device. I.E. The name of the Cisco device, an IP address and a MAC address of what is connected to a port on the device. The goal here is to be able to search for a PCs IP address or MAC address to be able to quickly identify what switch and what switch port the PC is connected to so an action can be taken.

It would be nice if the entire <UTData> record could be returned for a search.

I'm attaching the very beginning of the xml file which has 2 <UTData> records in it:

<?xml version="1.0" encoding="UTF-8"?>
<UTDetails>
<CMServer>nmsccm01</CMServer>
<CreatedAt>Thu May 19 11:29:59 EDT 2005</CreatedAt>
<SchemaVersion>1.0</SchemaVersion>
<Heading>UT HOST DATA</Heading>
<Query>all</Query>
<Layout>all</Layout>
<UTData>
<Index>15030590</Index>
<UserName/>
<MACAddress>00-0d-56-9e-ad-f9</MACAddress>
<HostName>csimpam349142.impl.ca.kp.org</HostName>
<IPAddress>10.202.71.27</IPAddress>
<Subnet>10.202.70.0</Subnet>
<DeviceName>lcaimpc115.ca.kp.org</DeviceName>
<Device>10.202.62.115</Device>
<Port>Fa0/2</Port>
<PortName>KPHC Reserved</PortName>
<PortState>static</PortState>
<VTPDomain>caimp</VTPDomain>
<VLAN>10.202.70.0/23</VLAN>
<VLANType>ethernet</VLANType>
<Ring/>
<Bridge/>
<trBRFVLAN/>
<LastSeen>2005/05/19 05:27:31</LastSeen>
<Notes/>
<PortDuplex>half-duplex</PortDuplex>
<PortSpeed>10M</PortSpeed>
<VLANId>70</VLANId>
</UTData>

<UTData>
<Index>12120705</Index>
<UserName/>
<MACAddress>00-01-e6-b0-21-90</MACAddress>
<HostName>medrec.ca.kp.org</HostName>
<IPAddress>10.206.33.241</IPAddress>
<Subnet>10.206.32.0</Subnet>
<DeviceName>lcahrbc129.ca.kp.org</DeviceName>
<Device>10.206.1.129</Device>
<Port>Fa0/24</Port>
<PortName>DEPT:MEDREC</PortName>
<PortState>static</PortState>
<VTPDomain>harb</VTPDomain>
<VLAN>10.206.32.0/24</VLAN>
<VLANType>ethernet</VLANType>
<Ring/>
<Bridge/>
<trBRFVLAN/>
<LastSeen>2005/05/19 05:28:32</LastSeen>
<Notes/>
<PortDuplex>half-duplex</PortDuplex>
<PortSpeed>10M</PortSpeed>
<VLANId>8</VLANId>
</UTData>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top