473,397 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Select XML Element by testing date data

4
I need to select out elements in an XML file based on whether date infomation is greater than a constant.

I need something like: test="ENTERED_AT > 07:40AM", but that doesn't work with the XML data I have. Does anyone have an idea how I can do this.

We are a radio station that publishes school closing information on our web site. I installed this school closing system we bought from a vendor that doesn't output the data like I need it to be included in our web page. I got the vendor to output XML and now I'm using Dreamweaver CS3 to manipulate the XML and build my pages with XSLT. Have it working for most things, except this report where I want to see only closings that have been entered after 7:40AM.

I'm inexperienced with XML & XSLT. Would this be something to do with the substring function or date/time formatting?

Here is small example of the XML file data:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ORGANIZATION (View Source for full doctype...)>
- <WEBCLOSE_XML>
- <ORGANIZATION>
<CATEGORY>SCHOOLS</CATEGORY>
<ORG_ID>2000</ORG_ID>
<ORG>WBCL Test School</ORG>
<STATUS>Three Hour Delay, Kindergarten Alternate Schedule</STATUS>
<STATUS2 />
<ENTERED_ON>09/11/2008</ENTERED_ON>
<ENTERED_AT>03:16:41 PM</ENTERED_AT>
<STATUS1LONG />
<STATUS2LONG />
<ZIPCODE>46807</ZIPCODE>
<CITY>Fort Wayne</CITY>
<STATE>IN</STATE>
<COUNTY>Allen</COUNTY>
</ORGANIZATION>
</WEBCLOSE_XML>

Its that ENTERED_AT element I need to be able to test against. Your help is greatly appreciated.
Sep 11 '08 #1
1 2552
Dormilich
8,658 Expert Mod 8TB
for a quick start I would say, that you try to compare two strings with a > operator. You have to somehow convert it to numbers. I will take a look at it.

regards
Sep 12 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
2
by: david | last post by:
Hi, I have a form with 2 select objects which are not linked together in any way. The list exactly the same information. The code that generates the data is: ...
13
by: kevinold | last post by:
Hello everyone, I have a list of about 1600 employees that I'd like to have displayed in a form. I'd like to make the "search" for the user as easy as possible. I ran across this:...
1
by: ralf321 | last post by:
hello! i have this xml: <object> <node meta="27" > <data meta="13" changed="2005-09-05 16:16:43">a</data> <data meta="14" changed="2005-11-06 19:26:49">b</data> <data meta="15" ...
4
by: Ian Richardson | last post by:
Hi, The function I've put together below is a rough idea to extend a SELECT list, starting from: <body> <form name="bambam"> <select id="fred"> <option value="1">1</option> <option...
6
by: dbuchanan | last post by:
There are three parts to this 1.) How do I cascade menus? 2.) And, how do I cascade menus with a multi-select CheckBoxList?
3
by: ibeehbk | last post by:
Hi. I have a form made in xhtml. I test via vbscript to make sure none of the fields are empty and properly formatted (ie email). All the regular fields work. However, I have two drop down menus...
2
by: phpnewbie26 | last post by:
I currently have two drop down menus where the second one is populated from the first one. My second drop down menu should be able to do multiple selection. I have searched online and found out how...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.