Displaying 20 results from an estimated 300 matches similar to: "How to parse xml with same key name ?"
2009 Mar 02
2
Need help extracting info from XML file using XML package
I have an XML file that has within it the coordinates of some
polygons that I would like to extract and use in R. The polygons are
nested rather deeply. For example, I found by trial and error that I
can extract the coordinates of one of them using functions from the
XML package:
doc <- xmlInternalTreeParse('doc.kml')
docroot <- xmlRoot(doc)
pgon <-
2012 Mar 22
2
How to draw table in Latex without using xtable?
Hi,
I am working on table suing R and Latex. I am writing .Rnw file first in
which i m reading input file and storing into dataframe. After filtering
certain values from this dataframe. I am planning to display it. I don't
want to use xtable since i need to change column names.
*Sample .Rnw file*
@
<<echo=FALSE>>=
cat("\begin{table}[ht]")
2012 Nov 23
1
invalid colour name 'rgb(1.000,0,0)' error
Hi,
I m working on latex and R and i need to dynamically generate colors.
r<-paste("rgb(1.000,",0,",",0,")",sep="") # i m generating dynamically by
paste command
cars <- c(1, 3, 6, 4, 9)
plot(cars, type="o", col=r) *Error in plot.xy(xy, type,
...) : invalid colour name 'rgb(1.000,0,0)'*
How to fix this
2012 Nov 22
1
How to read jpeg image with russian font in R?
Hi,
I m working on R and read one image with russian font using readjpeg()
function and write it on pdf (using grid). But russian text is not visible
on pdf. How can i fix my pblm?
Regards <http://r.789695.n4.nabble.com/file/n4650417/pointer.jpg>
library(JPEG)
library(grid)
pdf("out.pdf" , width = 6.6 ,height = 4.2,family= "URWHelvetica",
encoding="KOI8-R")
2010 Jun 22
0
XMLSchema:::processSchemaTypes() fails with XMLSchema.xsd [was: SSOAP fails with .types[[1]] : subscript out of bounds]
Hi again,
On Tue, 2010-06-22 at 10:02 +0200, Steffen Neumann wrote:
> So, if XMLSchema:::processSchemaTypes() does not find
> any custom/embedded type definitions, is it possibe to "inject" those
> from the http://www.w3.org/2001/XMLSchema.xsd
> into genSOAPClientInterface() instead ?
Well, it's not possible, at least for me.
This is as far as I got, any help
2003 Jul 28
3
http://www.omegahat.org/RSXML
Hi,
As the server www.omegahat.org seems to be down since quite a while,
could someone send me the RSXML library for Windows2000 ?
Many thanks,
Marc Mamin
2012 Dec 28
0
How to apply XPath query on XML nodes separately?
Dear R experts,
I try to extract certain child nodes from an XML document and construct a
table in which the parent node names are the columns and the child id
values, joined in a list, are the cell content.
If I first apply an XPath query to extract all above parent nodes, then
iterate over those nodes and again apply a XPath query to select their
child nodes, I get *ALL* matching child nodes
2003 Jun 09
2
XML package for R
Hi,
Does anyone have a binary of XML package for 1.7.0 on Windows?
I have searched it at the RSXML pages (http://www.omegahat.org/RSXML/ ) but it seems it is no longer support.
Any pointers for the compiled version will be appreciated.
Regards,
mushtaq
[[alternate HTML version deleted]]
2009 Jan 23
1
XML package help
Please consider this:
<Manifest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<!-- eName : name of the element.
eValue : value of the element. -->
<OutputFilePath>./XYZ</OutputFilePath>
<FilesList>
<File>
<FileTypeId>10</FileTypeId>
2008 Apr 18
7
problem in installing R packages on linux
I am facing problem in installing the R package on linux .
When i put the command install.packages("BART")
Then it asks for selecting the mirror , i have selected the mirrror , but it
is showing no package in repository .I have selected different different
repository still i am getting the same error what can i do , please help me
out.i am sending the screenshot of unix terminal .
I will
2004 Aug 12
1
Error Using pm.getabst()
R Users:
After installing Bioconductor, RSXML and all the relevant Win32 DLLs (libxml2, zlib, iconv), I receive the following error message when using pm.getabst()
Error in xmlRoot(absts) : no applicable method for "xmlRoot"
I receive this when using the example from help(pm.getabst).
Downloading the target XML file, parsing it with xmlTreeParse and applying xmlRoot returns no
2005 Jan 10
3
Installation of XML library can't find libxml2.dll
Sorry to ask a (probably) dumb question, but I am trying to install XML
package on Windows XP, R 2.0.1, and I get the error:
"This application has failed to start because libxml2.dll was not found.
Re-installing the application may fix this problem"
> library(XML)
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library
2008 Nov 05
2
How to extract following data
Hi everyone,
I have this kind of raw dataset :
- <Temp diffgr:id="Temp14" msdata:rowOrder="13">
<Date>2005-01-17T00:00:00+05:30</Date>
<SecurityID>10149</SecurityID>
<PriceClose>1288.40002</PriceClose>
</Temp>
- <Temp diffgr:id="Temp15" msdata:rowOrder="14">
2013 Jan 22
2
Creating a Data Frame from an XML
Hello,
I'm attempting to read information from an XML into a data frame in R using
the "XML" package. I am unable to get the data into a data frame as I would
like. I have some sample code below.
*XML Code:*
Header...
Data I want in a data frame:
<data>
<row BRAND="GMC" NUM="1" YEAR="1999" VALUE="10000" />
<row
2011 Dec 23
2
Custom XML Readers
I need to construct a custom XML reader, the files I'm working with are in
funky XML format:
<str name="author">Paul H</str>
<str name="country">USA</str>
<date name="created_date">2010-02-16</date>
I want to read the file so it looks like:
author = Paul H
country = USA
created_date=2010-02-16
Does any one know how to
2009 Nov 25
2
XML package example code?
I'm interested in parsing an html page. I should use XML, right? Could
you somebody show me some example code? Is there a tutorial for this
package?
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
2013 Jan 22
1
Create a Data Frame from an XML
Hello,
I'm attempting to read information from an XML into a data frame in R using
the "XML" package. I am unable to get the data into a data frame as I would
like. I have some sample code below.
*XML Code:*
Header...
Data I want in a data frame:
<data>
<row BRAND="GMC" NUM="1" YEAR="1999" VALUE="10000" />
<row
2012 Jan 13
3
tm package, custom reader
I need help with creating custom xml reader for use with the tm package. The
objective is to crate a corpus for analysis. Files that I'm working with
come from solr and are in a funky XML format never the less I'm able to
parse the XML files using solrDocs.R function provided by Duncan Temple
Lang.
The problem I'm having that once I parse the document I need to create a
custom
2011 Jun 29
2
parse XML file
Hi all,
this is my first post in this mailing group. I hope that anyboby could
help me parsing a xml file.
I found this website http://www.omegahat.org/RSXML/gettingStarted.html
but unfortunately my XML file is not as easy as the one in the example.
Example:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet