nodes

drupal using node.save with XMLRPC call to another site. "Access Denied" message

I have a piece of code on 1 drupal site to create a node another drupal site in a multi-site setup. It looks like I'm getting the sessionid and logging in just fine, but when trying to create a "page" node, I get "Access denied". Under Services -> Settings I have "Key Authentication", "Use keys" is unchecked, and "Use sessid" is checked....

How to delete nodes found with xpath-> query from a string that contains an HTML document with PHP

Hello all, The use case is quite simple. I would like to find node via an xpath statement in a string(!) that basically contains an HTML document and delete them. I know how to find the nodes with PHP. It is basically like this: create new DOMDocument LoadHTML (or LoadXML) Create new DOMXpath and then method "query" or "evaluate". Done...

XPath query on node-set working like a SQL where in

Hi, a sample of xml document: <xml> <list> <item refid="1" /> <item refid="3" /> </list> <catalogue> <model id="1"><details /></model> <model id="2"><details /></model> <model id="3"><details /></model> </catalogue> </xml> I'd like to query something like //model[ @id = (//item/@refid...

Drupal redirect user (also uid 1) to "page not found" for unpublished nodes. Cannot view, cannot edit.

I'm having some strange behaviour on one of my Drupal sites. Usually when I'm logged in as admin (uid 1) I can always see and edit nodes even if they are unpublished (makes sense). However on one of my sites I always get redirected to the "page not found"-page (404 redirect) even when i'm logged in as uid 1. Any ideas?? This is a Drupal ...

C# linq-to-xml, Getting a list with nodes?

Hi! This is the test xml that i am using: <categories> <category id="1" name="Test1"> <category id="2" name="Test2"> <misc id="1"></misc> </category> </category> <category id="3" name="Test3"> <misc id="2"></misc> </category> Now i want to bind that to an ASPX treeview, i want only the elements that have...

how to get the nodes with specific element value

Could some one please tell me how do we use the text function in the XPath query. I needed the information for Hillman Library present in the xml http://www.sis.pitt.edu/~arazeez/Librarydata.xml resultNodes = [rssParser nodesForXPath:@"//Library[1]/Hours/TermOrHolidays" error:nil];. for now I used the [1]. But I wanted to use the tex...

Inductive proof of binary tree child nodes

How can I prove that the number of interval nodes in a binary tree with n leaves (where each interval node has two children) is n-1, using induction? ...

Ways of Linking/Referencing XML nodes

Alright this question might sound a little bit stupid but I don't know where to start so I'll simply ask: I need a way to link or reference XML nodes among each other. So I started interviewing google and did find a few examples...yet I am not quite satisfied with the solutions i found. So i was wondering if there is a commonly accepted...

EJABBERD: Connection attempt from disallowed node

Having and issue with an ejabberd cluster. While trying ping the first node from the second, I'm getting : "Connection attempt from disallowed node" I know it's not a cookie issue, because the cookies on both servers match. ...

Java - Get child nodes as a string

Is it possible to get the child nodes under an xml element/node as a string in Java? Or do you have iterate through everything? Thanks, Andez ...

What kind of HTML element is this? quotes?

hi all, I'm checking out the HTML rendering of a page: http://gothamist.com/2010/07/18/wikileaks_founder_no-show_at_nyc_ha.php if you look at this image you can see when I look at the DOM there are odd character breaks with quotes by " As a commenter " http://img153.imageshack.us/f/screenshot20100730at840.png/ Any idea what those are...

Simplexml xpath to attribute value and and child node values in one query

example XML: <users> <user id="fakeuserid"> <password>fakeuserpassword</password> <username>fakeusername</username> </user> <user id="anotherfakeuserid"> <password>anotherfakeuserpassword</password> <username>anotherfakeusername</username> </user> </users> I would like to be able to access the id attrib...

First and Second last xml nodes...

I only want the first and the second last Area nodes - how would I do that here? $url = "http://developer.multimap.com/API/geocode/1.2/OA10081917657704697?qs=Byker&amp;countryCode=GB"; $results = simplexml_load_file($url); foreach($results->Location as $location) { echo "<hr />"; foreach($location->Address as ...

Need help with NetworkX

Currently im faced with the following problem: I have a script that searches through a specific directory that contains documents. Each document is assigned a number within the filename. Within each document are numbers that also represent another document (filename). How can I create a web that shows what documents lead to what? Any h...

WPF/Silverlight Tree - How do I make all nodes from a tree to be aligned?

Hi guys, What do I have to do with a Tree in WPF/Silverlight, to have all nodes aligned ar the same level? I mean I need the root and all childs to be align at the same distance from the left side of the screen. Is that possible? Actually I am using a Telerik Silverlight RadTreeView. Any help is welcomed, Thanks ...

Firefox/XHTML: creating and appending nodes

I'm trying to replace a bunch of innerHTML references in code with DOM-compliant node stuff. <html> <body>hehe</body> <script type="text/javascript"> var myDiv = document.createElement('div'); myDiv.setAttribute('id', 'myDivID'); document.getElementsByTagName('body')[0].appendChild(myDiv); var tex...

Quick look up of Data structures.

Hi, can i get the link to Quick look up of data structures.. ...

.NET 2.0 C# Treeview Drag/Drop within TreeNodes

I am interested in capturing a drag/drop event that will start with the user dragging an existing TreeNode somewhere within the TreeView. While the user is dragging the TreeNode around, I am interested in capturing when the node has been dragged between two tree nodes. When the user does this, I wanted to display a hash mark in-between...

How do I change this function to add the child nodes into the //root/Product/Genres node instead of adding to the end of the file (i.e. after </root>

It works properly in the way that it breaks up the comma-separated values into an array (with explode), but when it adds the child nodes, they show up after the closing root tag. What I'm trying to do here is replace the <Genres>Adventure,Crime,Action</Genres> with <Genre>Adventure</Genre> <Genre>Crime</Genre> <Genre>Action</Genre> A ...

Erlang node connectivity problem

Hello everyone, Struggling with connecting 2 nodes running on separate boxes. Tried to make sure that there is no usual problems with cookie synchronization, DNS or firewall. First, I run epmd in debug mode as recommended by Erlang docs: epmd -d -d Then on box #1: erl -name [email protected] -kernel inet_dist_listen_min 6000 inet_di...