Displaying 20 results from an estimated 300 matches similar to: "Creating XML document extremely slow"
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 <-
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
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 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
2009 Jun 25
3
exportation of xml file from R
Hello everybody,
I have programed a function to translate the R object structure into a XML
data structure but I haven't found a function in the XML package to export
this data in an XML file!
my data look like that:
<Factor>Assessor:codec</Factor>
<Sum Sq> 33.98159</Sum Sq>
<Df> 28</Df>
<F value> 6.510894</F value>
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",
2008 Dec 11
1
preprocessor VAD only rocognize between silence and not silence
Hello,
in my project im using speex 1.2rc1 and the preprocessor VAD seems to
only separate complete silence from not complete silence frames.
The Speex Manual, you can read "The voice activity detector (VAD)
provided by the preprocessor is more advanced than the one directly
provided in the codec."
but if you go to the source code in preprocess.c line 995 "/* FIXME:
This VAD
2008 Jan 19
0
11 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_sprite_movie_as.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml.h libswfdec/swfdec_xml_node.c libswfdec/swfdec_xml_node.h test/image test/swfdec_test.c test/swfdec_test_image.c test/trace
libswfdec/swfdec_as_strings.c | 2
libswfdec/swfdec_sprite_movie_as.c | 22 ++--
libswfdec/swfdec_xml.c | 117 ++++++++++++++++-------
libswfdec/swfdec_xml.h | 8 -
libswfdec/swfdec_xml_node.c | 32 +++---
libswfdec/swfdec_xml_node.h | 2
2004 Aug 06
3
libspeex crash with RC3
I tried to compress 160 samples of random garbage (range 0-500.f) at 4kbps
and got a crash in nb_encode -> forced_pitch_quant because start
was -858993460 (== ol_pitch).
-- Daniel, Epic Games Inc.
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org'
2008 Nov 14
3
SPEEX on iPhone ?
----- Original Message -----
From: "Alexander Chemeris" <Alexander.Chemeris at sipez.com>
To: "Vincent Burel" <vincent.burel at vb-audio.com>
Cc: "Conrad Parker" <conrad at metadecks.org>; <speex-dev at xiph.org>; "Jean-Marc
Valin" <jean-marc.valin at usherbrooke.ca>
Sent: Thursday, November 13, 2008 11:31 PM
Subject: Re:
2010 Sep 18
0
Wine release 1.3.3
The Wine development release 1.3.3 is now available.
What's new in this release (see below for details):
- Improved support for right-to-left text.
- Support for CMYK JPEG images.
- Beginnings of a Game Explorer implementation.
- Improved 64-bit support in MSI.
- Stub inetcpl control panel applet.
- A number of fixes to crypto support.
- Translation updates.
- Various bug
2007 Nov 27
0
12 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h
libswfdec/swfdec_as_interpret.c | 3
libswfdec/swfdec_as_strings.c | 14
libswfdec/swfdec_load_object.c | 178 +---
libswfdec/swfdec_load_object.h | 21
libswfdec/swfdec_load_object_as.c | 71 +
libswfdec/swfdec_loader.c | 75 +
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
Tag '0.5.3' created by Benjamin Otte <otte at gnome.org> at 2007-10-12 17:13 -0700
release 0.5.3 ("Tennis")
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQBHD50fvMv5VCdLq8QRAj21AKC+kWUT9YN0gGDxLNS6Bequt5ufjgCgtYgd
9zH6AzP7/BHRfo0j1tw80V8=
=wOYr
-----END PGP SIGNATURE-----
Changes since 0.5.2:
Benjamin Otte:
first try in getting movie
2023 Mar 09
0
njs-0.7.11
Hello,
I'm glad to announce a new release of NGINX JavaScript module (njs).
Notable new features:
- XMLNode API to modify XML documents:
: const xml = require("xml");
: let data = `<note><to b="bar" a="foo">Tove</to><from>Jani</from></note>`;
: let doc = xml.parse(data);
:
: doc.$root.to.$attr$b = 'bar2';
:
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
2013 May 27
1
Empty buffer on encoder write byte
Hi,
I've been trying to encode a live audio input from the microphone on iOS
device using opus.
Uncompressed audio recording works fine with
http://theamazingaudioengine.com/
Then, when I tried to do encoding, I'm stuck at figuring out why the buffer
is empty:
static int ec_write_byte(ec_enc *_this,unsigned _value){
if(_this->offs+_this->end_offs>=_this->storage)return
2007 Oct 25
0
18 commits - libswfdec/swfdec_player_internal.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_format.c libswfdec/swfdec_text_format.h libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c libswfdec/swfdec_xml_node.h test/trace
dev/null |binary
libswfdec/swfdec_player_internal.h | 2
libswfdec/swfdec_text_field_movie_as.c | 57 +++++---
libswfdec/swfdec_text_format.c | 13 +
libswfdec/swfdec_text_format.h | 1
libswfdec/swfdec_xml.c | 72 ++++++----
libswfdec/swfdec_xml_node.c
2007 Aug 22
0
3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c test/trace
libswfdec/swfdec_as_array.c | 18 +---
libswfdec/swfdec_as_function.c | 3
test/trace/trace_properties.as | 165 +++++++++++++++++++++++++++++------------
3 files changed, 129 insertions(+), 57 deletions(-)
New commits:
diff-tree adebed995585fa9f993062a75df17ff464113e93 (from 99c2574700ed7aaeef5cadbc45c7bfdd9ad7a6dd)
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Wed Aug
2009 Oct 09
0
Wine release 1.1.31
The Wine development release 1.1.31 is now available.
What's new in this release (see below for details):
- Vastly improved monthcal control.
- Performance improvements for DIB sections.
- Several sound driver fixes.
- Beginning of ActiveX support in JScript.
- More Direct3D 10 work.
- More 16-bit dlls split off to separate modules.
- Support for attachments in MAPI.
- Various