Questions tagged [nodename]

41 questions
1
vote
2 answers

puppet master didn't pass agent hostname/fqdn to enc script

Puppet version: 3.6.2 In order to simplify the management of ssl certificates, our puppet agents use the same certname, certname=agent.puppet.com When puppet master gets request from agent(hostname: web00.xxx.com), it executes Enc script with…
1
vote
2 answers

how to get a node name from an unknown node via SimpleXML

For example I have 2 types of nodes in my xml file: 1) 2) A variable named $node points to specific node(of unknown type). How can I access this node's name? It must be something like this: if($node->name()=="book") …
bukbukXiu
  • 13
  • 5
1
vote
2 answers

jquery report what element is being hovered on

Im trying to build a mini inspector tool that simply reports the element being hovered over, its ID and any classes it has. I built a demo page which has 4 nested elements: html > body > outerContainer > innerContainer I have managed to get it…
sygad1
  • 1,392
  • 3
  • 12
  • 19
1
vote
2 answers

jquery 1.7.2. spservices Syntax error, unrecognized expression: [nodeName=z:row]

Getting Syntax error, unrecognized expression: [nodeName=z:row] on this code.
Hell.Bent
  • 1,667
  • 9
  • 38
  • 73
1
vote
2 answers

HADOOP - get nodename inside mapper

I'm writing a mapper and would like to know if it is possible to get the nodename, where the mapper is running.
Venkat.V.S
  • 349
  • 3
  • 7
0
votes
2 answers

XSL count of this node verses nodes with the same name (dynamically)

I have the following XML: Apples Oranges Bananas Plums Carrots Peas Snickers and the following…
Matthew
  • 199
  • 1
  • 3
  • 12
0
votes
1 answer

jQuery can't select element by attribute name and get the nodename

I am trying to select this element by attribute name and print the nodename, but the result is undefined. The first alert works, but the second alert doesn't work. HTML code:
0
votes
4 answers

jquery find index() of same node name

I have this setup, just to find the index() of an element, but it should look at elements of the same level with the same nodename. The returning numbers are not as expected. See the code comment. I want filteredByNodeNameIndex to be '2'. Hope this…
Mark Knol
  • 9,663
  • 3
  • 29
  • 44
0
votes
1 answer

Postgres XML parse nodename

I have some XML like this: A Closer Look Thu, 12 Sep 2019 17:46:49 +0000 en business,businessnews I am using this…
Landon Statis
  • 683
  • 2
  • 10
  • 25
0
votes
1 answer

node-name not returning expanded QName in XSLT

This code is supposed to print the full path to all elements and attributes in the data.
Ihe Onwuka
  • 467
  • 1
  • 3
  • 11
0
votes
2 answers

Xquery - using variable to find node with namespace prefix

I am trying to find a node (prefixed with a namespace) using variables in my xquery like so: declare variable $libx_ns as xs:string external; declare namespace libx=$libx_ns; declare variable $type as xs:string external; return…
sony
  • 1,557
  • 10
  • 36
  • 50
0
votes
5 answers

XSLT - how to get the name value of a node?

We have (perhaps unusually formatted) XML files that (very simplified) look like this: John Doe
Somewhere1
...
0
votes
1 answer

Only one nodename, but multiple values for nodeValue- DOMXPATH

Why nodename prints "root", but nodeValue returns multiple and all the values in child nodes. Running this code, the echo will return "The Name of the parent node is root Its value is Text value 11111 Empty text value 2222 space text value 3333…
user9718914
  • 103
  • 9
0
votes
1 answer

AngleSharp - Find innermost nested tables

I try to get a list of all innermost tables with AngleSharp. This tables doesn't contain any tables. With HtmlAgilityPack I've realised it this way: var wrapper = html.DocumentNode.SelectSingleNode(".//td[@class='wrapper']"); var…
Peter Gast
  • 33
  • 3
0
votes
3 answers

Xquery node values where node starts with same text

How to create xquery to select node values where node name starts with some text. for example document Value1 Value2 Value3 Hello world! It should get Value1,Value2,Value3
marcinn
  • 1,879
  • 2
  • 22
  • 46