Displaying 20 results from an estimated 80000 matches similar to: "Automatic parsing of POSTed XML (SOLVED)"
2006 Mar 20
0
Automatic parsing of POSTed XML into @params
Awhile back I was posting some XML strings to my rails 1.0 application
and I noticed - much to my surprise and delight - that the XML was
automatically parsed into nested parameter values that were available
through @params.
To be more specific, if I posted the string
"<request><token>abcdefg</token</request>", I could access the value
"abcdefg" in my
2009 May 20
2
Example for parsing XML file?
Hi,
I am trying to parse XML files and read them into R as a data frame,
but have been unable to find examples which I could apply
successfully.
I'm afraid I don't know much about XML, which makes this all the more
difficult. If someone could point me in the right direction to a
resource (preferably with an example or two), it would be greatly
appreciated.
Here is a snippet from one of
2006 May 05
3
posting xml in functional test
Hello,
I''m trying to write a functional test for a simple CRUD controller which
accepts / emits xml in a REST- like fashion. However the following code
won''t work for me - an exception is generated
def test_create
post :create, ''<person><name>john</name></person>'',
2006 Mar 24
4
Parsing Filemaker 6 XML into something I can use
Hi
One of our customers has a Filemaker database which needs to be
accessed for some data. Using the Web Companion, I can query the
database for an XML version of the data. I need to be able to push
this data into an array of hashes, so I can access it in a more
convenient way. Filemaker is able to provide me with 2 XML formats
(DSO-XML and FMP-XML):
***********
DSO-XML
***********
2010 Oct 24
5
Integrating Asterisk 1.8 with Google Talk and Google Voice
Evening,
Has anyone seen a how-to on getting Asterisk to work with Google Talk
and Google Voice?
Thanks
2008 Aug 18
2
Fwd: Parsing XML or KML into CSV /Using R for geocoding , OR problem
Hi,
I have a data file in a KML format which is Google Earth's format for
geographic data. I need to import it into a csv file . How can I do that.
KML format is just like XML format .example below
Which R module with deal with an OR problem (like transportation problem
using geo coded data as in the example below)
Regards,
Ajay
www.decisionstats.com
-
<?xml version="1.0"
2007 Sep 04
1
SOLVED: importing huge XML-Files -- new problem: special characters
Hi all,
thanks to the people who replied to my question! I finally solved the
issue by writing own handlers and using xmlEventParse - which leads
to the following problem which is so odd that its probably a bug.
I use several special charachter in my XML-File, e.g. umlauts or ? or
? - but no matter how I encode my XML (UTF or ISO) or I escape these
characters xmlEventParse always stops
2003 Oct 17
4
chan_skinny & XML Files for 7920
Hi,
I have a Cisco 7920 that I'm trying to get working with my * box. When the
phone boots it requests XMLDefault.cnf.xml and SEP<MACADDRESSHERE>.cnf. I
assume I set the line number, etc in the latter of the two. However I
cannot find any reference to how this file is structured. Anyone know?
I assume this is why I'm getting the errors below:
Oct 17 19:47:24
2008 Jun 10
1
Parse XML
Could someone provide a link or examples of parsing XML document in R? Few
specific questions below:
For instance I can retrieve specific nodes using this:
node <- xpathApply(xml, "//" %+% xtag, xmlValue)
1) I want to be able to retrieve parent node for this node, how can I do
this? getParentNode() does not seem to cut it.
2) How can I retrieve children nodes for a particular
2007 Apr 14
1
Parsing status.xsl
Thanks for the tip on those scripts. They're exactly what I've been
looking for for a number of years now.
Althogh the first one doesn't seem to be online anymore. If anyone's
willing to send it to me, I'd love to host it for anyone else that
would like to download it in the future.
Justin
On 14-Apr-07, at 4:33 AM, Klauss Fumuldavijus wrote:
> Hi,
> actualy
2010 Oct 01
1
Python XML parsing of domain descriptions?
Does anyone know of a way to parse the libvirt XML into usable python data structures? Ideally, it would be something like foo['domain']['devices']['bridge'][0]['target'] or something of the sort. What I'm looking to accomplish is to figure out which tap interface goes with a specific domain.
I'm not keen on parsing XML to get that mapping, is there a
2011 Feb 23
1
XML Parsing Error
I have managed to get icecast to start, but when I browse to
the admin directory, I get this output:
http://127.0.0.1:8000/admin/stats.xml
XML Parsing Error: no element found
Location: http://127.0.0.1:8000/admin/stats.xml
Line Number 1, Column 1:
Am I supposed to wrap this output in an xhtml page, like
when doing an AJAX query?
Kind Regards,
Keith Roberts
2010 Aug 24
2
Parsing a XML file
I have one XML file with 30MB that I need to read the data.
I try this;
library(XML)
doc <- xmlDoc("Malaria_Grave.xml")
And R answers like this
*** caught segfault ***
address 0x5, cause 'memory not mapped'
Traceback:
1: .Call("RS_XML_createDocFromNode", node, PACKAGE = "XML")
2: xmlDoc("Malaria_Grave.xml")
Possible actions:
1: abort (with
2009 Feb 25
4
Have a function like the "_n_" in R ? (Automatic count function )
Have the counter function in R ?
if we use the software SAS
/*** SAS Code **************************/
data tmp(drop= i);
retain seed x 0;
do i = 1 to 5;
call ranuni(seed,x);
output;
end;
run;
data new;
counter=_n_; ***** this keyword _n_ ****;
set tmp;
run;
/*
_n_ (Automatic variables)
are created automatically by the DATA step or by DATA step statements.
*/
/*** Output
2012 Oct 26
1
Parsing very large xml datafiles with SAX (XML package): What data structure should I favor?
Hello again,
I have another question related to parsing a very large xml file with SAX:
what kind of data structure should I favor? Unlike using DOM function that
can return lists of relevant nodes and let me use various versions of
'apply', the SAX parsing returns me one thing at a time.
I first tried to simply append to simple solution of appending to lists as
I get the data. But I
2008 Oct 09
2
Menu for call forwarding or voicemail
I would like to create a simple menu that would allow a caller to
decide whether they want to leave a message or be forwarded to another
number (i.e cell phone). Thanks in advance for any insight.
Here's my current extension.conf
[general]
static=yes
writeprotect=yes
[globals]
[default]
exten => 101,1,Dial(SIP/101,20)
exten => 101,n,Voicemail(101 at default)
;This automatically
2004 Sep 29
2
RSXML - Parsing XML Documents on Internet
R Users -
I asked about this a few months ago and never did quite figure it out, so with more information, allow me to try again.
If I use the following code:
library(xml)
xmlTreeParse("http://home.comcast.net/~larsenmtl/xmlTestDoc.xml", isURL = TRUE)
I receive this error:
Error in xmlTreeParse("http://home.comcast.net/~larsenmtl/xmlTestDoc.xml"", :
error in
2007 Mar 28
7
Rails, REST and JSON
Hi everyone,
I''m writing a lightweight AJAX application using Rails on the server side as
a RESTful web service provider.
I need the web service to support both JSON and XML I/O. Outputting data in
XML and JSON is easy (using to_xml and to_json),
and it''s also easy to do XML input as Rails does it for you automatically.
Is it possible to somehow have the same
automatic parsing
2012 Oct 26
1
Parsing very large xml datafiles with SAX: How to profile <anonymous> functions?
Hello everyone,
I'm trying to parse a very large XML file using SAX with the XML package
(i.e., mainly the xmlEventParsing function). This function takes as an
argument a list of other functions (handlers) that will be called to handle
particular xml nodes.
If when I use Rprof(), all the handler functions are lumped together under
the <anonymous> label, and I get something like this:
2007 May 14
1
XML parsing under R / Extracting nodes’ values
Hi,
I have an XML file which contains among other nodes :
===myXMLfile.xml===
(?)
<nbRelations>2</nbRelations>
<nbActors>2</nbActors>
(...)
<nbRuns>5</nbRuns>
<nbStep>2000</nbStep>
(?)
===End file===
I need to extract those values and to make them R variables such as:
nbRelations = 2
nbActors = 2
nbRuns = 5
nbSteps = 2000
I read the help and have