Hello all,
I am developing an application in which i am getting xml from web.But some xml files are very large so when i parse xml in simulator it crashes the xcode also? do someone knows how to resolve this issue? BTW i know how to use NSXML parser only.So if this isn't work for me then please tell a step by step guide to any other appr...
I'm looking for a fast library/class to parse plain text using expressions like below:
Text is: <b>Name:</b>John<br><i>Age</i>32<br>
Pattern is: {*}Name:</b>{%}<br>{*}Age</i>{%}<br>
And it will find me two values: John and 32.
Intent is to parse simple HTML web pages without involving heavy duty tools. It should not be using string op...
Hello All,
I know there have been a ton of entries about this topic but I haven't seen the complete picture yet of how to store the data. I am trying to make a system that reads then parses then stores information about events from the Yahoo Upcoming API.
The url returns a pretty simple xml that looks like this
<event>
<id>489875230<...
I'm doing some reflection on generated LINQ to SQL classes (i.e. DataContext). For each property (column) on a class (table) I'm getting the ColumnAttribute.DbType value.
It can be various different values, here's some examples:
Int NOT NULL
Int
VarChar(255)
VarChar(255) NOT NULL
Bit
... and so on.
If I wanted to parse these strin...
Ok, so you know how you ask a question here, and in the "Tags" field you can enter several space-separated tags into a single text field?
I'm trying to replicate similar behavior in my Rails app. Except instead of questions, I'm doing a blog app (which has "posts"), and tagging those.
I'm using "form_for" to build the quick form. Insid...
Hello,
I have been asked to parse a simple file which is stored as an XML file, the data is to be then put into a mysql database.
However I have absolutely no clue what to do and after looking online all the examples given seem either too complicated for my problem or not the right solution. The XML file looks like this:
<shop>
<produc...
How can I print the source of a webpage, specified in curl_easy_setopt, without html tags? So, printing only the text in the source?
...
Our clients have a string stored in their registry which is an executable command. The string may or may not have quotes around the target path, and may or may not have parameters. For example:
"C:\path\file.exe" param1=value1 param2=value2
C:\path\file.exe param1=value1 param2=value2
"C:\path\file.exe"
C:\path\file.exe
"C:\p...
Hi folks,
I'm attempting to parse some Wiki-style markup using the Javascript Creole Wiki Markup Parser as found here. I'm attempting to extend the parser to parse div tags like so:
Markup: << any_content_here <<
HTML: <div class="left">content</div>
Markup: >> any_content_here >>
HTML: <div class="right">content</div>
Markup: ^^ an...
Attention please:
I already implemented this stuff, just not in any way generic or elegant. This question is motivated by my wanting to learn more tricks with the stl, not the problem itself.
This I think is clear in the way I stated that I already solved the problem, but many people have answered in their best intentions with solution...
I code a lot of parsers. Up till now, I was using HtmlUnit headless browser for parsing and browser automation.
Now, I want to separate both the tasks.
As 80% of my work involves just parsing, I want to use a light html parser because it takes much time in HtmlUnit to first load a page, then get the source and then parse it.
I want to...
I have a Ruby String that contains decimal-containing numbers. What's the best way to convert this into a decimal (fixed-point)?
"Best" means:
Reliable given a wide range of input options
Simple to write
Easy to read
DRY
...in roughly that order.
...
I have the following structure in my document:
<div id="clientList>
<a href=whatever.php" att="something">Text</a>
<a href=whatever.php" att="something">Text</a>
</div>
Say I want to get all of the links between the div out, how would I do this?
I tried the following:
$('#clientList').children("a").each(function() {
var x = $(this)....
I've tried parsing a list of users currently connected via SSH to a server, but the results are very irregular, so I was forced to simply do:
$users = shell_exec('who');
echo "<pre>$users</pre>";
Is there a better way to parse the output of who in the command line before I let PHP mess around with it? I want it in an array which conta...
I'm looking for an equivalent to sscanf() in Python. I want to parse /proc/net/* files, in C I could do something like this:
int matches = sscanf(
buffer,
"%*d: %64[0-9A-Fa-f]:%X %64[0-9A-Fa-f]:%X %*X %*X:%*X %*X:%*X %*X %*d %*d %ld %*512s\n",
local_addr, &local_port, rem_addr, &rem_port, &inode);
I thought at ...
Taking this thread a step further, can someone tell me what the difference is between these two regular expressions? They both seem to accomplish the same thing: pulling a link out of html.
Expression 1:
'/(https?://)?(www.)?([a-zA-Z0-9_%]*)\b.[a-z]{2,4}(.[a-z]{2})?((/[a-zA-Z0-9_%])+)?(.[a-z])?/'
Expression 2:
'/<a.*?href\s*=\s*["\'...
Hi all,
I'm experiencing some performance problem using XML parser with iphone sdk. I tried to use LibXML parser directly and the NSXMLParser, but i had the same results.
Now I'm looking for something that can improve parsing performance.
Moving attributes to a nested elements can make it faster?
I got an XML source file like this:
<...
I have figured out how to use spirit -- i.e., I have written a moderately complex grammar. I always take the approach of growing a program -- one subsystem at a time. I've written the data structures for a complex model which has 4 types at the highest level.
I would like to use the grammar composed from rules approach to parse the top...
Can you use a token defined in the lexer in a hidden channel in a single rule of the parser as if it were a normal token?
The generated code is Java...
thanks
...
I am writing a simple parser that will take a string of the format 20100101,1,2,foo and create an instance of the following class:
public class Foo
{
public DateTime TheDate { get; set; }
public int TheFirstInt { get; set; }
public int TheSecondInt { get; set; }
public string TheString { get; set; }
}
I would like to b...