I have to parse large XML files in php, one of them is 6.5 MB and they could be even bigger.
The SimpleXML extension as I've read, loads the entire file into an object, which may not be very efficient.
In your experience, what would be the best way?
...
I am trying to parse the html side of an aspx page from the C# code behind.
Essentially I have a with multiple checkboxes that are named as such:
qlcbXX with XX being an id of an item pulled from a database.
What i would like to do is
a) parse linkSelections for all the checkbox inputs
b) determine if they are checked
c) if checke...
Hello!
This isn't really an issue, however I am curious. When I save a string in lets say an DataRow, it is cast to Object. When I want to use it, I have to cast it ToString. As far as I know there are several ways of doing this, first is
string name = (string)DataRowObject["name"]; //valid since I know it's a string
and another one ...
Is there a library to parse a HTML response in in C++ .net?
...
I'm trying to download and parse the HTML of a web page. Recently, the source website moved from having all of their information on one page to hiding part of it behind javascript. There's a "Show All" check box that needs activated in order to view the whole page.
Here's the website: Source Website
Essentially I'm looking to automate ...
This is probably a silly question to people knowledgeable about compilers, but I'm honestly ignorant about the answer.
Is C++ syntax context-sensitive? In other words, is C++ syntax not expressible with context-free grammars?
Obviously C++ is parsed with regular parsing tools and that parsing is not particularly ineffective (!), but ...
My application needs to:
Run an external command-line application
Capture the standard output/error during execution
Parse the data from the output/error and use it for status display in the main app
While it's not hard to do it, it seems to me it's a very common task, and I was wondering if there's a library or framework simplifyin...
Hello,
I am trying to find out how this would work
For testing purposes, I have made two websites.
One is calling a REST service from the other
I pull the xml data with file_get_contents
if I echo it, I can see a string off data.
But how can I use simpelxml on it, extract data from the nodes themselves?
If I use simplexml_load_fil...
How could I use ruby to extract information from a table consisting of these rows? Is it possible to detect the comments using nokogiri?
EXTRACT LINK 1
EXTRACT DESCRIPTION
EXTRACT LINK 2
Mr P
1
...
I'm trying to write a program that takes company names from a text file and searches them on a search engine website (SEC's Edgar search). Each search usually comes up with 1-10 unique search result links and so I want to use curl to click on the link with the relevant company name. The link page has a brief summary with the term "state ...
Hello,
my question is actually
What kind off structure would I use to send xml as part off a REST service if I have most off the logic in a class. I call/include the class at the top off my php index page if it becomes clear a service is being requested.
Someone mentioned to me that a class method should not output anything.
Then wher...
I have an xml file that looks like the following
<siteinfo>
...
</siteinfo>
<page>
<title>...</title>
<revision>
...
<revision>
</page>
It does not have a root/enclosing node so I get the "extra content at end of document" on running my program. After opening the file for parsing using libxml, is there a way to easily add ...
Any starting point/ideas for a custom console app which mimics the dos command prompt ?
Basically looking for best practices and ideas for where to start
Perhaps using powershell which frankly i've not looked at yet !
I know this is a little retro but i've found some limitations in the web app done using asp.net mvc etc. ( few of them ...
I need a JSON, JS Array parser in Java and/or PHP. Do you know any parser ?
regards,
...
Right now I successfully grabbed the full element from an HTML page with this:
//img[@class='photo-large']
for example it would return this:
<img src="http://example.com/img.jpg" class='photo-large' />
But I only need the SRC url (http://example.com/img.jpg). Any help?
...
I have a DWORD value that in Hex might look like:
DWORD Val = 0xFF01091A
How can I read each byte? What I mean is, how can I read FF, 01, 09 and 1A?
Thanks!
...
Yesterday I asked about C++ context sensitivity, see here. Among many excellent answers, here is the accepted one, by dmckee.
However, I still think there's something to be said about this (maybe some terminological confusion?). The question amounts to: what part of compilation deals with the ambiguity?
To clarify my terminology: A CFG...
I have a configuration format similar to *.sln format, so take the following as an example:
DCOM Productions Configuration File, Format Version 1.0
BeginSection:Global
GlobalKeyA = AnswerOne
.: Stores the global configuration key
:: for the application. This key is used
:: to save the current state of the app.
:: a...
I'm constantly running up against this when writing queries with LINQ-to-XML: the Value property of an XElement is a string, but the data may actually be an integer, boolean, etc.
Let's say I have a "where" clause in my query that checks if an ID stored in an XElement matches a local (integer) variable called "id". There are two ways I ...
I have a bunch of checkboxes that are created dynamically on page load and written like so:
<input type='checkbox' name='quicklinkscb' id='quicklinkscb_XX'/>
where XX represents the id of the item from the database.
I want to be able to parse the page via javascript for all checkboxes and:
find their id and strip the 'quicklinksscb_...