Displaying 20 results from an estimated 800 matches similar to: "XML namespace control"
2018 Mar 22
1
how to add a child to a child in XML
Just to clarify and hopefully catch the attention of the maintainer:
The newXMLNode function is not mentioned in:
https://cran.r-project.org/web/packages/XML/XML.pdf
which supposedly describes all functions in the package.
Stephen
From: Ben Tupper [mailto:btupper at bigelow.org]
Sent: Thursday, March 22, 2018 10:40 AM
To: Bond, Stephen
Cc: r-help
Subject: Re: [R] how to add a child to a
2018 Mar 22
2
how to add a child to a child in XML
Big thanks. newXMLNode works great. Wonder why it is not included in the documentation.
There is newXMLDoc and newXMLNamespace, but no mention of newXMLNode.
Stephen
From: Ben Tupper [mailto:btupper at bigelow.org]
Sent: Wednesday, March 21, 2018 6:18 PM
To: Bond, Stephen
Cc: r-help
Subject: Re: [R] how to add a child to a child in XML
Hi,
XML doesn't use the `$` to access child nodes.
2018 Mar 22
0
how to add a child to a child in XML
Hi,
It's a reasonable question. The answer is that it actually is included, but there are many instances across packages where multiple functions are documented on a single help page. The following brings up such a page... (for XML_3.98-1.9)
> library(XML)
> ?newXMLNode
You can see the same on line...
https://www.rdocumentation.org/packages/XML/versions/3.98-1.9/topics/newXMLDoc
2018 Mar 21
0
how to add a child to a child in XML
Hi,
XML doesn't use the `$` to access child nodes. Instead use either `[name]` to get a list of children of that name or `[[name]]` to get the just the first child of that name encountered in the genealogy. Thus for your example...
> root$child1
NULL
> root[['child1']]
<child1 name1="A" name2="B" name3="C"/>
On the other hand, you might
2012 Apr 05
1
issue with base:::namespaceImportMethods
Hi,
I've noticed an issue with S4 methods and namespaces which only arises in
particular, difficult to reproduce configurations. One example is the ggbio
package in Bioconductor, which currently emits these warnings when its
namespace is loaded:
----------------------
library(ggbio)
Loading required package: ggplot2
Attaching package: ‘ggbio’
The following object(s) are masked from
2012 Feb 17
1
Creating XML using apply
Hi
My data looks like this
data is a vector
data= var1 var2 var3
100 120 130
i want to put it in an XML
xmlOutput=NULL
xmlOutput<- newXMLNode("results")
for( i in 1 : length(data))
{
newXMLNode("variable",attrs=c(name =names(data)[i] ), value =
data[i]), parent = xmlOutput)
}
is it possible to use apply here
If there more variables it
2004 Mar 15
1
smbpasswd trying to add instead of replace attribut
I have some weird error with one of my samba installation.
When modifying samba password using smbpasswd, samba seems trying to add same attribute (instead of delete and add again), pls see the "MOD" from log file (from different domain) :
UNSUCESSFULL
Mar 15 17:10:53 hurricane slapd[27056]: conn=29489 op=1 MOD dn="uid=pwreka,ou=people,ou=purwakarta,dc=indorama,dc=com"
Mar 15
2003 Jul 03
3
Using switch =>
hello,
I have a test setup with 2 asterisk servers, each having a one snom 100
via sip using it. I`m experimenting on how trunking between them would
work. I have them setup for RSA authentication which I plan to use in
the future.
So I`ve setup the keys and servers seem authenticate to each other. One
is named phila and other hurricane.
Here is what I see on phila:
-- Registered
2018 Mar 21
2
how to add a child to a child in XML
I am trying to add a child to a child using XML package in R. the following fails
library(XML)
node1 <- c("val1","val2","val3")
names(node1) <- c("att1","att2","att3")
root <- xmlNode("root", attrs=node1)
node2 <- LETTERS[1:3]
names(node2) <- paste("name",1:3,sep="")
root <-
2012 Mar 27
2
rgl package broke with R 2.14.2
Dear People
I can't figure out how to fix this problem: rgl won't run under R
2.14.2 (it was working for me before under 2.14.0). The error message
is:
> library(rgl)
Error : .onLoad failed in loadNamespace() for 'rgl', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/
2003 Feb 25
1
How to modify XML documents and save changes
Dear,
I want to read XML documents, add child nodes to some elements and store
everything back as an XML document.
I've tryed the following:
doc <- xmlTreeParse("file.xml")
QTListNode<-xmlElementsByTagName(xmlRoot(doc)[[1]],"tagname")
append.xmlNode(QTListNode[[1]],newXMLNode(name ="Norm", attrs = NULL))
saveXML(doc, file = "out.xml",
2006 Aug 27
1
Simulations in R during power failure
Hi everyone,
I recently ran a simulation on a computer using R that was hooked up to a UPS. There was one time when the power was out for length and the computer shut down. I was worried that I had lost the simulation, but upon booting the machine up, I heard the processor kick in. It sounded like the simulation had resumed.
Does anyone have any experience with this? Because I live in
2014 Feb 12
2
A beginner in "Posting list encoding improvements"
On Wed, Feb 12, 2014 at 10:32:03PM +0800, Hurricane Tong wrote:
> I seem to run into some trouble.
> I succeeded in building the source code of Xapian in ubuntu,
> but when I write a demo c++ application
>
> [snip]
> I can't get it built.
>
>
> hurricanetong at hurricanetong-VirtualBox:~/workspace$ g++ -L/usr/local/lib -lxapian-1.3 BuildIndexDemo.cpp
Hmmm,
2014 Mar 13
3
Optimized VSEncoding
Hi,
The size of the string generated by VSEncoder is 12592387,
while that by InterpolativeEncoder is 8554817.
When only encoding the first 1000lines,
both cost 0ms to decode and VS cost 1ms to encode while Interpolative cost 0ms,
1000lines is just too little to catch the difference in my test.
I upload the source code to https://github.com/HurricaneTong/Xapian/tree/master/VSEncoder
The
2014 Feb 12
2
A beginner in "Posting list encoding improvements"
On 12 Feb 2014, at 14:58, "Hurricane Tong" <zhangshangtong.cpp at qq.com> wrote:
> hurricanetong at hurricanetong-VirtualBox:~/workspace$ g++ `xapian-config --cxxflags --libs` BuildIndexDemo.cpp
You want to use xapian-config-1.3 here, not xapian-config (which will be the installed version, not the trunk version you built).
I've just built trunk (on Mac OS, admittedly),
2014 Oct 01
1
DHCP with ipv6 tunnel
I'm completely confused here and I'm hoping someone here has a setup
they're willing to share, or help me configure things on my end.
My connectivity is through Comcast, who unfortunately, does not offer ipv6
in my area. My connection goes like this:
Comcast -> Motorola Surfboard Cable Router -> CentOS 6.5 server
The CentOS server is multi-homed and manages the internal
2005 Sep 06
5
Good Polycom Dealer?
Could any of you provide me information on a good
Polycom phone dealers to utilize. One who provides
firmwares ..etc
Thank you!
Kenny
______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/
2014 Feb 13
2
回复: A beginner in "Posting list encoding improvements"
I think what i did is the same with you except i use make rather than make -sj8, and I did as root.
And I do as you wrote again:
root at hurricanetong-VirtualBox:/home/hurricanetong/xapian-1.2.17/xapian-core-1.2.17# ./configure
[...]
root at hurricanetong-VirtualBox:/home/hurricanetong/xapian-1.2.17/xapian-core-1.2.17# make -sj8
Making all in .
Making all in docs
Making all in tests
root at
2011 Oct 25
0
Problem in creating XML
I've a problem in creating an XML
My code
node= newXMLNode("data")
new<-newXMLNode("new",parent=node)
child<-newXMLNode("Plot",parent=new)
My dataframe Plot looks like below
x y
0 123812.31
1 120166.77
2 111115.83
3 102809.13
4 84438.97
2014 Feb 13
2
A beginner in "Posting list encoding improvements"
I uninstall xapian1.3 and install xapian-1.2.17
but i still failed
hurricanetong at hurricanetong-VirtualBox:~/workspace$ g++ `xapian-config --cxxflags --libs` demo2.cc
/tmp/cc2wsfDJ.o: In function `main':
demo2.cc:(.text+0x4a): undefined reference to `Xapian::WritableDatabase::WritableDatabase(std::basic_string<char, std::char_traits<char>, std::allocator<char> >