I think I need a combo of hpricot and regex here. I need to search for 'a' tags with an 'href' attribute that starts with 'abc/', and returns the text following that until the next forward slash '/'.
So, given:
<a href="/abc/12345/xyz123/">One</a>
<a href="/abc/67890/xyzabc/">Two</a>
I need to get back:
'12345'
and
'67890'
Can anyo...
Hi,
I am currently drawing a number of circles on a canvas in a custom view in code. the circles are static and do not change. I would like to draw them using a ShapeDrawable in xml to help clean up my code. I will have a number of different drawables which the user can select and therefore I don't want to do this in code. having 3 or 4...
I'm working on a C++ project, and wanted to get some inputs from developers with similar experience.
The task is to connect to a web service which gives the results in an XML form. My role in the task is once I receive the XML form, I need to convert the XML into a C++ object and parse the XML data to the C++ object.
Following are my ...
Hello Everyone,
I have a database with me consisting of certain tables. I have written a query to fetch some fields from a table and stored those fetched values in some variables. Now, I am looking for a way which will allow to assign values fetched from database to the XSL variables. I am trying to generate a HTML page using fetched va...
Hello
I have a big problem with the PHP DOMDocument::validate() who seems to ask the DTD systematically.
It is a big problem when I whant to validate, for example, an XHTML document as explained here.
As w3.org seems to reject all request from a PHP server, it's impossible to validate my document with this method...
Is there any solu...
Ok, not sure if this is possible to do..
I have a query that returns just simple records from the database, but formatted out as XML as follows:
select name, address, dateCreated, flag
from table
where name = 'test'
for xml path('row'), root('rows')
ok, no problems, and I get the XML as desired:
<rows>
<row>
<name>jddjdjd</nam...
Hi,
I started to learn android and I'm making a simple game. In this game I need two scroll lists with the same width, so I set layout_weight parameter to "1" in both views. But when I run program scroll views have different size. Second problem is that i need EditText widget to be low, so I did the same thing with TableRows, but in the ...
I was googling around for some time and didn't googled anything...
How to, using php, update twitter status thru twitter API with OAuth?
Thanks!
...
Essentially, I currently have an iPhone app that can query and parse an XML file on my server. Right now, I currently have to manually update and upload my XML file every morning so my users can have the updated information. I would like to automate this process, which would essentially entail parsing various websites (NYTimes, iAmBored....
Scenario: I am trying to collect information from xml file. To do so, i am using the xmlschema provided. plan is to readxmlschema against dataset and later read xml file. Please suggest me best process if the existing is not appropriate. Anways during this process i encountered this following issue.
I am trying to readxmlschema into a d...
I am using XOM to canonicalize some XML. But there are some strange characters prepended to the output. The core of the code is as follows:
String result;
outputstream = new ObjectOutputStream(bytestream);
Builder builder = new Builder();
Canonicalizer canonicalizer = new Canonicalizer(outputstream, Canonicalizer.EXCLUSIVE_XML_CANONICAL...
I am doing some server side coding with JavaScript (node.js) and I would like to write valid xml.
I found two libs, but I am sure there are more/better!?
http://goessner.net/download/prj/jsonxml/ (LGPL)
not yet released: https://sourceforge.net/projects/jsonix (LGPL)
Requirements: open source (for commercial usage)
Would be cool if...