Displaying 20 results from an estimated 42 matches for "xmlnode".
2012 Feb 10
3
Creating XML document extremely slow
...<Channel>All</Channel>
</Marker>
...
</Markers>
</MarkerSet>
There are about 500 very similar marker tags. Here's the part of the
code that is particularly slow (x is a character, y is an integer,
both have a length of about 500):
markernode <- xmlNode('Markers')
for(i in 1:length(t)){
markernode <- addChildren(markernode, xmlNode('Marker',
xmlNode('Type', 'Stimulus'), xmlNode('Description', x[i]),
xmlNode('Position', y[i]), xmlNode('Points', 1),...
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 <- addChildren(root,xmlNode("child1",attrs=node2))
node3 <- letters[1:3]
names(node3) <- paste("name",4:6,sep="")
root <- addC...
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", compression = 0, indent=T)
This doesn't seem to work.
Can anyone help?
Thanks,
Steffen
2018 Mar 21
0
how to add a child to a child in XML
...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 consider using newXMLNode() instead of xmlNode() as it accepts a "parent = " argument. The alternative using newXMLNode() would look like...
atts_root <- c("val1","val2","val3")
names(atts_root) <- c("att1","att2","att3")
root <- newXMLNode(&qu...
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...
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
You have dig in to find it.
If you are just starting out with XML, you might want to spend some time comparison shopping with the xml2 package. https://www.rdocumentation.org/package...
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...
2010 Sep 18
0
Wine release 1.3.3
...ean resource.
inetcpl.cpl: New Korean resource.
Igor Paliychuk (3):
shell32: Ukrainian translation update.
shdocvw: Ukrainian translation update.
ipconfig: Ukrainian translation update.
Jacek Caban (26):
msxml3: Store outer iface as IXMLDOMNode instead of IUnknown in xmlnode.
msxml3: Added node_query_inerface function for common xmlnode child objects implementation.
msxml3: Use fake IID to safely cast IXMLDOMNode interface to xmlnode object.
msxml3: Use separate object for unknown node type implementation.
msxml3: Use get_node_obj to get xmlnode...
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
...nd b/test/trace/xml-id-map-5.swf differ
diff --git a/test/trace/xml-id-map-5.swf.trace b/test/trace/xml-id-map-5.swf.trace
new file mode 100644
index 0000000..b2dfdb1
--- /dev/null
+++ b/test/trace/xml-id-map-5.swf.trace
@@ -0,0 +1,25 @@
+local.x = object
+ 1 = object
+ __proto__ (hp) = _global.XMLNode.prototype
+ constructor (hp) = _global.XMLNode
+ 2 = object
+ __proto__ (hp) = _global.XMLNode.prototype
+ constructor (hp) = _global.XMLNode
+ __constructor__ (hn) = _global.XML
+ __proto__ (hp) = _global.XML.prototype
+ constructor (h) = _global.XML
+
+done
+<a><b id="t...
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...indow when exiting
add a test for a crasher we had in cvs until recently
bump libtool version
release 0.5.3
Pavel Roskin:
Fix a compiler warning when using SWFDEC_AS_CHECK
make gcc not complain about unused variables
Pekka Lampila:
Start work on XML parsing and XMLNode class
XMLNode: Improve toString method, add incomplete appendChild method
Merge branch 'master' into xml
In XML.onData set loaded even if loaded failed. Set XML propflags.
Fix a compile error I caused when merging
Merge branch 'master' into xml
Re...
2009 Jun 25
3
exportation of xml file from R
...e>
8
<Factor>Residuals</Factor>
<Sum Sq>214.73234</Sum Sq>
<Df>1152</Df>
<F value>NA</F value>
<Pr(>F)>NA</Pr(>F)>
</line>
</anova:2>
</anova>
for data I basically used the function xmlNode,addChildren,xmlchildren. I
don't know if it's sufficient to recognise a xml file
So thanks for your help!
Regards,
Guillaume
[[alternative HTML version deleted]]
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
...++ b/test/trace/xml-properties2-5.swf.trace
@@ -68,10 +68,10 @@ local.d.childNodes = object
__proto__ (hp) = _global.Array.prototype
constructor (hp) = _global.Array
length (hp) = number : 1
-local.d.firstChild = local.d.childNodes.0
+local.d.firstChild = object
__proto__ (hp) = _global.XMLNode.prototype
constructor (hp) = _global.XMLNode
-local.d.lastChild = local.d.childNodes.0
+local.d.lastChild = object
__proto__ (hp) = _global.XMLNode.prototype
constructor (hp) = _global.XMLNode
local.d.localName = null
@@ -89,7 +89,7 @@ local.d.ignoreWhite = boolean : false
local.d.loaded...
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';
: doc.$root.to.setAttribut...
2012 Dec 28
0
How to apply XPath query on XML nodes separately?
...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 of the whole document, *not*
just those of the currently queried parent.
I know, this is because I prefix my XPath Query with // and apparently any
given XMLNode "knows" of his whole document,
but I seem not to be able to find a proper solution.
So, my question is:
How do I restrict a call of getNodeSet to just a XMLNode and not the whole
document it was retrieved from?
I use the XML and RCurl packages. The document I speak of is downloaded
from...
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
...();
+}
+
+trace ("Check when TextField's native properties are initialized");
+
+// FIXME: Not tested yet: The properties should only be created if the
+// prototype Object has not been initialized by any object's constructor with
+// native properties (TextField, TextFormat, XML, XMLNode at least)
+
+check_and_reset ();
+
+var tmp = new TextField ();
+check_and_reset ();
+
+this.createTextField ("t", 0, 0, 0, 100, 100);
+check_and_reset ();
+
+this.createTextField ();
+check_and_reset ();
+
+this.createTextField ("t");
+check_and_reset ();
+
+this.createTextFiel...
2007 Aug 22
0
3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c test/trace
...ion;
+_global.SharedObject = SharedObject;
+_global.Sound = Sound;
+_global.Stage = Stage;
+_global.String = String;
+_global.System = System;
+_global.TextField = TextField;
+_global.TextFormat = TextFormat;
+_global.TextSnapshot = TextSnapshot;
+_global.Video = Video;
+_global.XML = XML;
+_global.XMLNode = XMLNode;
+_global.XMLSocket = XMLSocket;
+_global.clearInterval = clearInterval;
+_global.clearTimeout = clearTimeout;
+_global.enableDebugConsole = enableDebugConsole;
+_global.escape = escape;
+_global.flash = flash;
+_global.isFinite = isFinite;
+_global.isNaN = isNaN;
+_global.o = o;
+_global...
2009 Oct 09
0
Wine release 1.1.31
...ScriptHost IServiceProvider stub implementation.
mshtml: Added IInternetHostSecurityManager stub implementation.
jscript: Added ActiveXObject constructor implementation.
jscript: Added ActiveXObject tests.
msxml3: Store pointer to node object in domtext.
msxml3: Store xmlnode pointer in domattr.
msxml3: Store xmlnode pointer in domcdata.
msxml3: Store xmlnode pointer in domcomment.
msxml3: Store xmlnode pointer in domfrag.
msxml3: Store xmlnode pointer in entityref.
msxml3: Store xmlnode pointer in dom_pi.
msxml3: Get rid of node inte...
2016 Apr 12
0
Wine release 1.8.2
...ystemInformationEx().
ntdll: Add NtQuerySystemInformationEx() stub.
kernel32: Forward GetLogicalProcessorInformationEx() to ntdll.
ole32: Don't call spy on IMalloc::Free(NULL).
Paul Gofman (1):
d3dx9: Fix D3DXIntersectTri function.
Piotr Caban (6):
msxml3: Update xmlNode reference count when nodes are merged in node_insert_before.
msxml3: Store information about ignorrable whitespace nodes in xmlNode._private variable.
msxml3: Reimplement node_get_text helper so it uses information about ignorred white space nodes.
msxml3: Add support for CDATA no...
2012 Apr 21
1
how to write html output (webscraped using RCurl package) into file?
i want
"http://scop.berkeley.edu/astral/pdbstyle/?id=d1fjgc2&output=html",showing
information in webpage to be written in .txt file as it is(i don't want any
html tag)
i am using "RCurl" package
>marathi<-htmlTreeParse("http://scop.berkeley.edu/astral/pdbstyle/?id=d1fjgc2&output=html")
>marathi
2008 Jul 03
0
ActiveShipping throwing error in build_access_request
I''m using ActiveShipping to try and query for shipping rates - and
when I''m getting an error when it''s building xmlnode.
The full code calls and the stack trace are here:
http://pastie.org/226833
but here are snippets:
result = ups.find_rates(origin, destination, packages)
NameError (undefined local variable or method `transitive'' for
<UNDEFINED> ... </>:REXML::Document):
/opt/local/lib...