Re: [R] Parsing XML?

2022-07-28 Thread Spencer Graves
Hi, Richard et al.: On 7/28/22 1:50 AM, Richard O'Keefe wrote: What do you mean by "a list that I can understand"? A quick tally of the number of XML elements by identifier: 1 echoedSearchRetrieveRequest 1 frbrGrouping 1 maximumRecords 1 nextRecordPosition 1 numberOfRecords 1 query 1 records 1

Re: [R] Parsing XML File

2015-10-13 Thread Lorenzo Isella
Dear Jim, Thanks for your reply. What you did is 100% what I need -- I now have a data frame with the relevant data and I can take up from there. Regards Lorenzo On Sun, Oct 11, 2015 at 03:54:10PM -0400, jim holtman wrote: Not sure exactly what you want since you did not show an expected

[R] Parsing XML File

2015-10-11 Thread Lorenzo Isella
Dear All, I am struggling with the parsing of the xml file you can find at https://www.dropbox.com/s/i4ld5qa26hwrhj7/account.xml?dl=0 Essentially, I would like to be able to convert it to a data.frame to manipulate it in R and detect all the attributes of an account for which unrealizedPNL

Re: [R] Parsing XML File

2015-10-11 Thread jim holtman
Not sure exactly what you want since you did not show an expected output, but this will extract the attributes from AccVal in the structure: > # > library(XML) > > xmlfile=xmlParse("/temp/account.xml") > > class(xmlfile)

Re: [R] Parsing XML file to data frame

2014-05-06 Thread starcraz
Tim - the file is a hyperlink at the beginning of the message called 'sample.xml' or here's the hyperlink http://r.789695.n4.nabble.com/file/n4689883/sample.xml -- View this message in context: http://r.789695.n4.nabble.com/Parsing-XML-file-to-data-frame-tp4689883p4690021.html Sent from the R

Re: [R] Parsing XML file to data frame

2014-05-06 Thread David Winsemius
On May 5, 2014, at 11:42 AM, Timothy W. Cook wrote: I didn't find an attached XML file. Maybe the list removes attachments? The list does not remove all attachments, It removes ones that are not among the listed acceptable formats. XML is not among the list of acceptable formats. If it had

Re: [R] Parsing XML file to data frame

2014-05-05 Thread Timothy W. Cook
I didn't find an attached XML file. Maybe the list removes attachments? You might try posting to StackOverflow.com if this is the case. On Fri, May 2, 2014 at 2:17 PM, starcraz chan_will...@email.com wrote: Hi all - I am trying to parse out the attached XML file into a data frame. The file

[R] Parsing XML file to data frame

2014-05-02 Thread starcraz
Hi all - I am trying to parse out the attached XML file into a data frame. The file is extracted from Hadoop File Services (HFS). I am new in using the XML package so need some help in parsing out the data. Below is some code that I explore to get the attribute into a data frame. Any help is

[R] Parsing XML to tree.

2013-05-08 Thread avinash sahu
Hi All, I am struggling to parse a XML file that describes a tree. The XML file is present here: http://www.emouseatlas.org/emap/ema/theiler_stages/StageDefinition/Stage_xml/TS23.xml I want is simple list of parents id of each component. The output will look like Component = [7148 7149 7150

Re: [R] Parsing XML to tree.

2013-05-08 Thread Ben Tupper
Hi, On May 8, 2013, at 3:43 AM, avinash sahu wrote: Hi All, I am struggling to parse a XML file that describes a tree. The XML file is present here: http://www.emouseatlas.org/emap/ema/theiler_stages/StageDefinition/Stage_xml/TS23.xml I want is simple list of parents id of each component.

Re: [R] Parsing XML to tree.

2013-05-08 Thread avinash sahu
Hi All, I am using XML package. Even this type of simple parse is not giving intended result. tissue.tree - xmlTreeParse( http://www.emouseatlas.org/emap/ema/theiler_stages/StageDefinition/Stage_xml/TS23.xml;, handlers=list( anatomy=function(x,attr) {x},

Re: [R] Parsing XML to tree.

2013-05-08 Thread Gabor Grothendieck
On Wed, May 8, 2013 at 3:43 AM, avinash sahu avinash.s...@gmail.com wrote: Hi All, I am struggling to parse a XML file that describes a tree. The XML file is present here: http://www.emouseatlas.org/emap/ema/theiler_stages/StageDefinition/Stage_xml/TS23.xml I want is simple list of parents