|
I have a simple function that's designed to copy a section of an xml document to another. I want to replace one node with the other so ReplaceChild seems like the logical choice. I keep getting the error 'The reference node is not a child of this node...
Started by Colin Newell on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The code should have been....
I got the parameters to ReplaceChild the wrong way around .
It looks like you have your ReplaceChild parameters reversed:
public virtual XmlNode ReplaceChild( XmlNode newChild, XmlNode oldChild )
Actually I was being an idiot .
|
|
Hi.
I have this content structure for a multi language site.
Content Danish Forside Om os English Frontpage About Us When I start the website it automatically starts in the Danish-node, but I want it to start in "Forside", and as for the english part ...
Started by Peter Lindholm on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
That should work....
Set the property to be of type 'Content picker' and save it At 'Danish' node set the property to point to node 'ForSide'.
A property called 'umbracoRedirect' to the document type associated with the 'Danish' node.
|
|
I'm studying Erlang's process model at the moment. I have hit a snag in a tech report (section 3, paragraph 2) on Erlang:
This explains why it in some cases can be more efficient to run several SMP VM's with one scheduler each instead on one SMP VM with...
Started by Hassan Syed on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
However, the numbers from the EUC papers are over a year... .
Some logic that supervises the nodes.
If you have multiple schedulers in a single VM but that is the usual way to do it anyways .
Verse intra process messaging of a VM node.
|
Ask your Facebook Friends
|
After only a few weeks of working with Drupal I've come up with a recurring problem, which I don't really have an optimal solution to, so I'm hoping that someone here might be able to give some best practice pointers.
What I have is a region inside my...
Started by Marco on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you are using a node view, you will have to override the template and create a ....
The first part is easy, you can for the node_reference and they should display.
And you want the block information displayed inline with the node.
|
|
Existing Data (name, lft, rgt):
Root, 1, 4 Item1, 2, 3
Looks like:
- Root --- Item1
How do you insert a new node (Item2) BELOW Item1? My system's current logic follows most examples I've found online but the result is Item2 ABOVE Item1.
- Root --- Item...
Started by Rich on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
For how to insert, see the 5th query here: http://intelligent-enterprise.informationweek.com/001020/celko.jhtml;jsessionid=OOU0L1... .
Root, 1, 6 Item1, 2, 3 Item2, 4, 5
and use ORDER BY ItemName , but of course this only works for a given set of siblings .
|
|
Hi,
I want to determine whether to different child nodes within an XML document are equal or not. Two nodes should be considered equal if they have the same set of attributes and child notes and all child notes are equal, too (i.e. the whole sub tree ...
Started by divo on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
In the process of doing, XNode>(); foreach ....
} else { nodeDictionary.Add(hash, node); } }
My XmlFile1.xml is:
<?xml version="1.0 as the key and the reference to the respective <w:p> node as the value.
logic here // ...
|
|
Many long nights spent on my site, and now I've started doing all sorts of security checks and stumbled upon the following:
www.mysite.com/node
That shows the latest x nodes that a user has access to. I DON't want this view visible to users. And I certainly...
Started by RD on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
There are two approaches....
Not sure about other urls that get you the page at /node .
So it is usually the same tha appear on you're and alias /node to something else like /node/1 or whatever ..
The "node" view is the default frontpage view.
|
|
I'm writing some xlst file which I want to use under linux and Windows. In this file I use node-set function which declared in different namespaces for MSXML and xsltproc ("urn:schemas-microsoft-com:xslt" and "http://exslt.org/common" respectively). Is...
Started by Евгений on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Firefox 3 implements node-set (as part of the EXSLT 2.0 namespace improvements) in it's client-side function you should use:
<xsl:choose> <xsl:when test="function-avaliable('exslt:node-set')"> <xsl:apply-templates select="....
|
|
I need to be able to store a node set in variable and then perform more filting/sorting on it afterward. All the examples I've seen of this involve either using XSL2 or extensions neither of which are really an option.
I've a list of hotels in my XML ...
Started by Pete Duncanson on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
That's when you need....
The problem here is that nodes you output don't have type "node-set" - instead, they're what is called it.
Rating" /> </xsl:for-each>
There is no problem storing a node-set in a variable in XSLT 1.0.
|
|
I created a view that displays my homepage fine but now a modification is needed: i load 2 fields (images) in my view but need to only display one of those, depending on the value of a third (date) field and today's date. if date field is later than today...
Started by stef on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I believe you can do something in the line of $node-> already and do a dpm($....
The reason is that cck adds the fields to the $node object so you can access it there.
Is usually not a big problem when you have the $node object.
|