In my application i parse a xml from which I get a list of items (hotels and restaurants) that i put into array "listElements"; I need to get from this array, another array that will contain only the particular elements (hotels only) and then I need to get from this array, three array that will contain hotels according to stars(array5sta...
I am using HttpWebRequest to put a remote web page into a String and I want to make a list of all it's script tags (and their contents) for parsing.
What is the best method to do this?
...
I am using Javascript Date.parse() to check if a start time is after an end time.
The time in question is like this:
Date.parse("12:00pm") > Date.parse("9:30pm")
In Chrome this is coming up as false (as it should)
In IE it is incorrectly coming up as true.
The values Chrome see's are:
Thu Jul 22 2010 12:00:00 GMT-0400 (Eastern Day...
Hello,
I have an piece of hardware that returns tempature data etc. I am not sure what format this is though. I would like to parse it with php any suggestions on the best or easiest way to parse the data. I will be storing the data in a mysql database and this data will be inserted one every 30 seconds.
Below is the data:
{name:"Envi...
I have Xerces and Oracle XML parsers both in my application's classpath (don't ask why).
When I create a new javax.xml.parsers.DocumentBuilderFactory, the classloader automatically picks up the Oracle XML parser. However, it's not a full/proper implementation, so it's giving me headaches.
Is there a way I can force/tell the classloader...
I am trying to write an application using Python 2.7 that will allow the user to open a dialog box, pick a file, have it read into a structure of some sort (ArrayList, List etc...) open to suggestions here and then to find basic statistical measures from the data (things like mean, standard deviation etc...) and to output the original fi...
Is there a way to parse feed's custom elements? Not feed entries', feed's custom elements. I know there is a way to do the same for the entries. Like,
Feedzirra::Feed.add_common_feed_entry_element("wfw:commentRss", :as => :comment_rss)
feed = Feedzirra::Feed.parse(some_atom_xml)
feed.entries.first.comment_rss # => wfw:commentRss is now ...
While parsing an XML, given a Node object, can I retrieve the raw XML that corresponds to that Node? I'm using Java and parsing the XML using JDOM.
...
Are there any good free parsing programs out there in python or java? I have been using a lot of textfiles recently and they are all different. I have been spending a lot of time writing code to parse these textfiles. I was wondering if there is some program that could get all the names of a person out of a textfile or parse the file bas...
I want to learn the basics of Parsing with C++.
For that matter I thought of a simple Configuration Language that might look like this:
/*
same comment syntax as in C++
keywords:
"section" = begins a new section block
"var" = defines a new var
...
*/
section MySection { // also valid: section "MySe...
Are there any free-to-use libraries for .NET so that I can read Canon's raw format, CR2, into my image processing application, retaining the full color depth? I believe it is a linear 14-bit/channel integer format, however some processing is required due to the layout of the image sensor array.
I don't want it in crappy 8-bit/channel pr...
In an iphone application that I am building, I am parsing XML in a number of view controllers when they are loaded by a user.
Every time I do this, I am doing the following:
establishing an NSURLConnection (in viewDidLoad)
storing the data retrieved and error handling (connection delegate methods)
creating an NSXMLParser
parsing the ...
Hello all,
I am making use of the PHP Simple HTML DOM Parser to get the number 3869 from a HTML page. I tried this and a few other variations.
foreach($html->find('span[class=searchresults_tab_number]') as $element) {
echo $element->innertext . '<br />';
}
But I keep getting nothing returned! All I need is the number from...
I'm trying to implement parsing of CSS in JavaScript so that:
a {
color: red;
}
is parsed into the object:
{
'a' {
'color': 'red'
}
}
First off, is there a JavaScript / jQuery library I can use?
My implementation is pretty basic, so I'm sure it is not fool-proof by any means. For example, it works fine for basic CSS, but...
So, I'm writing an LL(1) parser (for kicks) and I ran into a problem with the member selection operator ("." as in "var.function()"). Here's a simplified grammar I'm trying to analyze with the parser:
postfix_expression
: postfix_expression '(' ')'
| postfix_expression '.' identifier
| identifier
;
The above grammar i...
I have to parse a file that looks like this:
versioninfo
{
"editorversion" "400"
"editorbuild" "4715"
}
visgroups
{
}
world
{
"id" "1"
"mapversion" "525"
"classname" "worldspawn"
solid
{
"id" "2"
side
{
"id" "1"
"plane" "(-544 -400 0) (-544 -240 0) (-272 -240 0)...
I have a VPS that's hosting multiple virtual hosts. Each host has it's own access.log and error.log. Currently, there's no log rotation setup, though, this may change.
Basically, I want to parse these logs to monitor bandwidth and collect stats.
My idea was to write a parser and save the information to a small sqlite database. The scri...
Hi folks,
I'm using MongoDB an nosql database. Basically as a result of a query I have a list of dicts which themselves contains lists of dictionaries... which I need to work with.
Unfortunately dealing with all this data within Python can be brought to a crawl when the data is too much.
I have never had to deal with this problem, a...
I've been working on a parser for simple template language. I'm using Ragel.
The requirements are modest. I'm trying to find [[tags]] that can be embedded anywhere in the input string.
I'm trying to parse a simple template language, something that can have tags such as {{foo}} embedded within HTML. I tried several approaches to parse...
Suppose I downloaded the HTML code, and I can parse it.
How do I get the "best" description of that website, if that website does not have meta-description tag?
...