Displaying 11 results from an estimated 11 matches for "getnameditem".
2010 Feb 08
1
[PATCH] Converter: Prefer detected arch of OS if it's available
...V/Converter.pm
index ff4bc05..81abb02 100644
--- a/lib/Sys/VirtV2V/Converter.pm
+++ b/lib/Sys/VirtV2V/Converter.pm
@@ -224,9 +224,8 @@ sub _configure_os
$os->appendChild($type);
}
- # Set type/@arch unless it's already set
- my $arch_attr = $type->getAttributes()->getNamedItem('arch');
- $type->setAttribute('arch', $arch) unless(defined($arch_attr));
+ # Set type/@arch based on the detected OS architecture
+ $type->setAttribute('arch', $arch) if (defined($arch));
}
sub _configure_default_devices
--
1.6.6
2006 Mar 04
1
RE: Question about event listener highlighting withchild elements
...AsEventListener(this), false);
this.el = null;
},
findSecurityIdPath: function(srcElement)
{
var el;
for (el = srcElement; el != null; el = el.parentNode)
{
if(el.attributes)
{
var idPathAttrib =
el.attributes.getNamedItem("securityIdPath");
var idPath = idPathAttrib ? idPathAttrib.value : false;
if (idPath)
return idPath;
}
}
return null;
},
highlight: function(e)
{
this.oBackgroundColor = this.el...
2006 Mar 04
0
Question about event listener highlighting with child elements
....bindAsEventListener(this), false);
this.el = null;
},
findSecurityIdPath: function(srcElement)
{
var el;
for (el = srcElement; el != null; el = el.parentNode)
{
if(el.attributes)
{
var idPathAttrib =
el.attributes.getNamedItem("securityIdPath");
var idPath = idPathAttrib ? idPathAttrib.value : false;
if (idPath)
return idPath;
}
}
return null;
},
highlight: function(e)
{
this.oBackgroundColor = this.el.style.b...
2008 Jan 19
1
Set Return Type XML in Prototype
...#39;title'');
for (i=0;i<x.length;i++)
{
alert("Title [" + i + "] :" + x[i].childNodes[0].nodeValue);
}
var x=xmlDoc.getElementsByTagName("book");
alert(x.length);
for(i=0;i<x.length;i++)
{
var attlist=x.item(i).attributes;
var att=attlist.getNamedItem("category");
alert(att.value);
}
}
PHP code:
<?php
header("Content-Type: application/text; charset=utf-8");
$xml=''<?xml version="1.0" encoding="ISO-8859-1"?>
<bookstore>
<book category="Jewel Category 1">
<...
2010 Mar 31
3
[PATCH] Remove v2v-snapshot
...isk->findnodes('source');
- my ($target) = $disk->findnodes('target/@dev');
-
- # Look for the source location
- my $path;
- my $src_attrs = $source->getAttributes();
- foreach my $attr qw(dev file) {
- my $item = $src_attrs->getNamedItem($attr);
- if(defined($item)) {
- $path = $item->getNodeValue();
-
- # Remove the attribute. We'll add a new one in below.
- $src_attrs->removeNamedItem($attr);
-
- last;
- }
- }
-
- # Find the...
2014 Oct 31
0
Wine release 1.7.30
...T().
dwrite: Properly null-terminate name string when converting to WCHAR.
dwrite: Implement system font collection as any other font collection.
dwrite: Turn fixme to trace in Analyze().
dwrite: Store pixels per dip value for a render target.
msxml3: Return S_FALSE in getNamedItem() of PI node.
Piotr Caban (4):
msvcp100: Add std::iostream_category() implementation.
msvcp100: Fix basic_string class definition.
imm32: Return FALSE on WM_MSIME_* messages in ImmIsUIMessage.
user32: Show that IME window class is one of builtin classes.
Sebastian Lackner...
2009 Jul 24
2
[PATCH] Initial drop of virt-v2v
...es = $dom->findnodes('/domain/devices/disk/source');
+
+ foreach my $source (@sources) {
+ my $attributes = $source->getAttributes();
+
+ # Look for the source location
+ my $path;
+ foreach my $attr qw(dev file) {
+ my $item = $attributes->getNamedItem($attr);
+ if(defined($item)) {
+ $path = $item->getValue();
+
+ # Remove the attribute. We'll add a new one in below.
+ $attributes->removeNamedItem($attr);
+ }
+ }
+
+ # Warn and ignore this source if we did...
2010 Jan 29
4
[FOR REVIEW ONLY] ESX work in progress
The following patches are where I'm currently at with ESX support. I can now
import a domain from ESX along with its storage. Note that I'm not yet doing any
conversion. In fact, I've never even tested past the import stage (I just had an
exit in there).
The meat is really in the 4th patch. The rename of MetadataReader->Connection
was because the Connection is now really providing
2009 Dec 21
4
Refactor virt-v2v to be more like a 'big script'
These patches combine HVSource and HVTarget into a single Converter. This should
make it more obvious where to hack without losing any practical flexibility.
GuestOS remains separate. GuestOS is now a misnomer, because it's really only a
Linux distro abstraction. It will be useless for Windows, for example. Functions
which you'd expect to be different on a non-RH distro should live in
2011 Nov 18
0
Wine release 1.3.33
...msxml3: Some tests to show that leading spaces are not allowed for xml stream.
msxml3: Test that IXMLHTTPRequest doesn't support IDispatchEx.
msxml3: Move XSLPattern test data to a table.
msxml3: Implement get_nodeTypeValue() for attributes without a type.
msxml3: Fix getNamedItem() for qualified node names.
msxml3: Support multiple IXMLDOMNamedNodeMap implementations.
msxml3: Added IDispatchEx support for IXMLDOMImplementation.
msxml3: Properly handle qualified names in getAttributeNode().
msxml3: Properly return node prefix from get_prefix()....
2010 Feb 01
9
[ESX support] Working ESX conversion for RHEL 5
With this patchset I have successfully[1] imported a RHEL 5 guest directly from
ESX with the following command line:
virt-v2v -ic 'esx://yellow.marston/?no_verify=1' -op transfer RHEL5-64
Login details are stored in ~/.netrc
Note that this is the only guest I've tested against. I haven't for example,
checked that I haven't broken Xen imports.
Matt
[1] With the exception of