f



How to find non-existing nodes or nodes with no text

Ok, this must be simple but the more i search the more i don't find.
It's about SimpleXML and PHP.
How to find non-existing nodes or nodes with no text

My XML file looks a little bit like this:

i.e. 1
<discography>
   <CD>
	<title></title>
	<year>1978</year>
   </CD>
</discography>


i.e. 2:
<discography>
   <CD>
	<year>1978</year>
   </CD>
</discography>


In i.e. 1, the tag <title> is empty. How do i test for empty tags in
PHP?
In i.e. 2, the tag <title> doesn't even exist. How do i test for non-
existing tags?


This is how i get the values from XML in PHP without validation
....
//set the XML file name as a PHP string
$cd_xml = "db/discography/cd.xml";

//load the XML file
$xml = @simplexml_load_file($cd_xml) or die ("Error: The XML file
can't open.") ;
....

//no validation if empty, creates empty <h1> tags. Not good!
<h1><?php echo $xml->CD->title; ?></h1>
<h2><?php echo $xml->CD->year; ?></h2>





How to validate?
Any suggestions?

Thanks in advance
Marco
0
5/9/2008 11:01:10 PM
comp.lang.php 32646 articles. 0 followers. Post Follow

1 Replies
464 Views

Similar Articles

[PageSpeed] 40

<?php if (isset($xml->CD->title) && trim($xml->CD->title) != '') { ?>

  <h1><?php echo $xml->CD->title ?></h1>

<?php } ?>

On May 9, 7:01 pm, SM <servandomont...@gmail.com> wrote:
> Ok, this must be simple but the more i search the more i don't find.
> It's about SimpleXML and PHP.
> How to find non-existing nodes or nodes with no text
>
> My XML file looks a little bit like this:
>
> i.e. 1
> <discography>
>    <CD>
>         <title></title>
>         <year>1978</year>
>    </CD>
> </discography>
>
> i.e. 2:
> <discography>
>    <CD>
>         <year>1978</year>
>    </CD>
> </discography>
>
> In i.e. 1, the tag <title> is empty. How do i test for empty tags in
> PHP?
> In i.e. 2, the tag <title> doesn't even exist. How do i test for non-
> existing tags?
>
> This is how i get the values from XML in PHP without validation
> ...
> //set the XML file name as a PHP string
> $cd_xml = "db/discography/cd.xml";
>
> //load the XML file
> $xml = @simplexml_load_file($cd_xml) or die ("Error: The XML file
> can't open.") ;
> ...
>
> //no validation if empty, creates empty <h1> tags. Not good!
> <h1><?php echo $xml->CD->title; ?></h1>
> <h2><?php echo $xml->CD->year; ?></h2>
>
> How to validate?
> Any suggestions?
>
> Thanks in advance
> Marco

0
petersprc (357)
5/10/2008 5:01:07 AM
Reply:

Similar Artilces:

How to find non-existing nodes or nodes with no text.
Ok, this must be simple but the more i search the more i don't find. It's about SimpleXML and PHP. How to find non-existing nodes or nodes with no text My XML file looks a little bit like this: i.e. 1 <discography> <CD> <title></title> <year>1978</year> </CD> </discography> i.e. 2: <discography> <CD> <year>1978</year> </CD> </discography> In i.e. 1, the tag <title> is empty. How do i test for empty tags in PHP? In i.e. 2, the tag <title> doesn't even exist. How do i test for non- existing tags? This is how i get the values from XML in PHP without validation .... //set the XML file name as a PHP string $cd_xml = "db/discography/cd.xml"; //load the XML file $xml = @simplexml_load_file($cd_xml) or die ("Error: The XML file can't open.") ; .... //no validation if empty, creates empty <h1> tags. Not good! <h1><?php echo $xml->CD->title; ?></h1> <h2><?php echo $xml->CD->year; ?></h2> How to validate? Any suggestions? Thanks in advance Marco SM wrote: > Ok, this must be simple but the more i search the more i don't find. > It's about SimpleXML and PHP. > How to find non-existing nodes or nodes with no text > > My XML file looks a little bit like this: > > i.e. 1 > <discography> > <CD> > <title></title>...

xsl variable $node/text() but $node can non-node-set help!
I have a variable $value as a parameter in the following template: <xsl:template name="myTemplate"> <xsl:param name="value"/> <xsl:if test="$value"> <xsl:value-of select="$value"/> </xsl:if> </xsl:template> Now i call myTemplate sometimes whit the a parameter $value that is sometimes a text node, and sometimes it is not even a node. Example: <inputDoc> <a>hello</a> <a/> </inputDoc> xsl: <xsl:for-each select="/inputDoc/a"> <xsl:call-template name="myTemplate"> <xsl:with-param name="value" select="./text()"/> </xsl:call-template> </xsl:for-each> So i call myTemplate with parameter $value=a/text() But for the second <a> element in <inputDoc> there is not text() node. This gives me the following error: Cause: javax.xml.transform.TransformerException: The value is not a node-set With line number of the error pointing to the xsl:if in myTemplate. No i tried the function nilled(), but that is XPath 2.0, i only use XPath 1.0 and XSL 1.0 i know a possible solution is this: <xsl:for-each select="/inputDoc/a"> <xsl:choose> <xsl:when test=".[not(node())]"> <xsl:call-template name="myTemplate"> <xsl:with-param name="value" select="false()"/> </xsl:call-template> <...

simpleXML and PHP. How to find if a node is empty or exists?
I think that simpleXML is the best thing i've seen in PHP5. It's so simple (d'ho!) and easy to use when it comes to reading a simple XML file. The only thing i'm not sure how to achieve is finding if an XML node is empty or if the node exist or doesn't exist. I'm searching the web, but got nothing yet. I was thinking of posting it here. This is a condensed version of the code: <?xml version="1.0" encoding="UTF-8"?> <CD> <title>Shine</title> <year>1985</year> <label></label> <description>Good CD from the 1980s</description> <item> <track id="18">Moonlight</track> <track>Shine</track> <track>Absolute</track> </item> <item> <track>Relative</track> <track>Star</track> <track>Crazy</track> </item> </CD> $file = 'db_cd_number.xml'; $xml = @simplexml_load_file($file); //?????? if(title node is empty || title node doesn't exist) { echo 'title is empty or doesnt exist, do something'; } else { echo 'title OK, continue'; } //i.e. 2 What about attributes?????????? foreach ($xml->item-> as $item) { foreach($item->track as $track) { if($track['id'] doesn't exist or empty) { echo 'dont show the lyrics'; ...

Why treat text nodes as nodes?
One of the things I find most unnatural about most XML APIs is that they try to abstract both elements and text into some kind of "node" object when they have virtually nothing in common. The reason these APIs do it is to make it possible for both text and elements to be children of elements. But there is another way. The XPath/XQuery data model does not allow two consecutive text nodes. As far as I can tell, most XML processing software automatically merges consecutive text nodes. This means that the number of text segments directly under an element is bound by the number of sub-elements plus 1 (PIs and comments may be treated as "pseudo-elements" for this purpose). As a result, it is always possible to associate each text segment with the element immediately preceding it within the parent and associate the first text element with the parent itself. No more text nodes. The only API I know that uses this trick is the ElementTree API for Python by Fredrik Lundh (http://effbot.org/zone/element-index.htm). Each Element object has a text and tail property for the text immediately inside the element and text following it within its parent element. Elements always have a tag, attributes and and zero or more children - which are always other elements. No mixed types. The text and tail attributes are always strings. This model should be very convenient for statically-typed languages like Java or C++. I find it ironic that this idea is probably used only in Pyt...

Text nodes and element nodes query
Hi all, The code below gets me a list of all the nodes within the node object called xml_tags_root. NodeList nl = xml_tags_root.getChildNodes(); The length of nodelist I get is double the number of actual elements! This is because after every element node there is text node which is (I think) the whitespace in the XML document. Is there a way to get only the element nodes? Please advice. thanks, ASD Hi, Look at getElementsByTagName(....) Regards, Arnaud "asd" <arvindsd@yahoo.com> a �crit dans le message news: 1116833345.887839.95270@g47g2000cwa.googlegroups.com... &...

XSLT Select nodes without text-node children whose names starts with specifix text
Question on XSL expression Got this XML: <Body> <Page> <Line no="9" detail="true"> <onefield>onefieldstext</onefield> <twofield>twofieldstext</twofield> </Line> <Line no="10" detail="true"> <onefield>onefieldstext</onefield> <fgman9>fgmanfieldstext</fgman9> <twofield>twofieldstext</twofield> </Line> <Line no="11" detail="true"> <onefield>onefieldstext</onefield> <twofield>twofieldstext</twofield> </Line> <Line no="12" detail="true"> <onefield>onefieldstext</onefield> <twofield>twofieldstext</twofield> </Line> <Line no="13" detail="true"> <onefield>onefieldstext</onefield> <fgman5>fgmanfieldstext</fgman5> <twofield>twofieldstext</twofield> </Line> <Line no="14" detail="true"> <onefield>onefieldstext</onefield> <twofield>twofieldstext</twofield> </Line> </Page> </Body> I would select the <Line/> nodes without text-node children whose names is starting with "fgman" - in this example it is all <Line/> _except_ <fgman9/> and <fgman5/> in <Line/> with @no of 10 and 13. I know that this works: &...

Inserting Nodes between Nodes
Hi, XML novice here with another question. I need to add a XML node like, [code] <child01> <child02> <text></text> <image>image 1</image> <image>image 2</image> </child02> </child01> [/code] into this node between the ending </child01> and beginning <child01> of the [code] <child01> <child02> <text></text> <image>image 1</image> <image>image 2</image> </child02> </child01> <child01> <child02> <text></text> <image>image 1</image> <image>image 2</image> </child02> </child01> [/code] Does this make sense? I guess im looking for a way to say/do... make a new node with the following values and place it between these other two nodes. I still am learning XML but i think this can be done. On Jan 21, 12:34 am, cesarcesar <ce...@empiresolutions.net> wrote: > Hi, > > XML novice here with another question. I need to add a XML node like, > > [code] > <child01> > <child02> > <text></text> > <image>image 1</image> > <image>image 2</image> > </child02> > </child...

select nodes with child node A and child node B
I have an XML document that has multiple childe nodes like the one at the end of this message What syntax would I use with selectNodes to select all viewentry nodes that have an entrydata child node with a name attribute equal to "CourseOrMeetingName" that has a text childe node with the text Course ABC AND that also have an entrydata child with a name attribute equal to Start Date that has a datetime child node with the text 20070110 I was trying something like //viewentry[ (entrydata[@name='CourseOrMeetingName'][text='Course ABC']) and (entrydata[@name='StartDate'][datetime='20070110'])]" <viewentry position="1" unid="E5FE575692CAB4CD852572140052F751" noteid="893A" siblings="24"> <entrydata columnnumber="0" name="CourseOrMeetingName"> <text>Course ABC</text></entrydata> <entrydata columnnumber="1" name="StartDate"> <datetime>20070110</datetime></entrydata> <entrydata columnnumber="2" name="City"> <text>West chester</text></entrydata> <entrydata columnnumber="3" name="FirstName"> <text>Joe</text></entrydata> <entrydata columnnumber="4" name="MiddleName"> <text></text></entrydata> <entrydata columnnumber="5" name="LastName"> <text>...

problem with child text node when constraining other child node types
I'm struggling with whether or not it is possible to represent the following construct in a dtd. I have an element X that I want to contain 3 types of child elements. Child Element A should have a 0 or 1 constraint, Child element B should have a 0-n constraint. I also want X to be able to contain text, resulting in xml that the following <X> <A/> <B/> <B/> child text of element X also possible </X?> I've got the following, but can't seem to figure out a way to also allow for a text child node. Any help appreciated <!ELEMENT X (A?, B*)> Bryan Bryan Ax wrote: > I've got the following, but can't seem to figure out a way to also > allow for a text child node. Any help appreciated Declare X as having mixed content. http://www.w3.org/TR/2004/REC-xml11-20040204/#sec-mixed-content Looking at this, I don't see a way to constrain it so that A only can appear once, whereas B can appear multiple times...I think I'm missing something. Upon further reading, there doesn't appear to be a way to do this. Either I go to mixed-content, which is less constraining, or I need to add a child node to hold the text element. http://www.devguy.com/fp/XML/dtd.htm Bryan Ax wrote: > I have an element X that I want to contain 3 types of child elements. > Child Element A should have a 0 or 1 constraint, Child element B should > have a 0-n constraint. I also want X to be able to contain text, All you can do ...

xslt help needed with element nodes embedded in text node
I'm but an amateur with xsl stylesheets. I need some help to the output of text nodes with embedded element nodes like the following: <uf><ns>This</ns> example</uf> <uf>Another <ns>This</ns> example</uf> <uf>Another <ns>This</ns></uf> I need to output the ns strings in italics. <xsl:apply-templates select="./uf" /> <xsl:template match="ns"> <i><xsl:value-of select="." /></i> </xsl:template> As long as the xml file is exported in lines as above the output is ok: "This example". (In this email I don't indicate the italicised part string.) But lately the document server hosting the application that contains xml files of the sort above changed the export of xml files. Now there are line breaks at each new element boundary: <uf> <ns>This</> example </uf> With my xsl code I get an additional space at the beginning and the end of the phrase: " This example ". I tried to get rid of them with <xsl:template match="text()"> <xsl:value-of select="normalize-space()" /> </xsl:template> But this results in "Thisexample". What is to be done? (There is no option to substitute the mandatory spaces with &#160;). Volker I tried <xsl:strip-space elements="uf" />. It doesn't help either. Volker Volker Le...

node-node adjacency matrix to a node-arc adjacency matrix
I have been trying to figure out how to create a arc-node adjacency matrix from a node-node adjacency matrix, for example: node-node adj A = [0 1 0 1 1; 0 0 1 1 0; 0 0 0 1 1; 0 0 0 0 1; 0 0 0 0 0]; looking for the following links: 1-2,1-4,1-5,2-3,2-4,3-4,3-5,4-5 arc-node adj B =[ 1 1 1 0 0 0 0 0 -1 0 0 1 1 0 0 0 0 0 0 -1 0 1 1 0 0 -1 0 0 -1 -1 0 1 0 0 -1 0 0 0 -1 -1]; Any help will be greatly appreciated: I have tried to develop a for loop using "A" and assigning -1 to the tail end of the link but with no succes...

XPath for non-empty #text nodes (tDOM)
Hello! What's would be the syntax for a query, which would allow me to get only the elements with non-empty text-nodes? For example, from: <a><b></b></a> <c/> <d><e>meow</e></d> I only want to get the d/e ... If this matters, I'm using Tcl with the tDOM extension. Thanks! -mi In article <44qdncuBAoFht2DanZ2dnUVZ_s-pnZ2d@speakeasy.net>, Mikhail Teterin <usenet+mill@aldan.algebra.com> wrote: >What's would be the syntax for a query, which would allow me to get only the >elements with non-empty text-nodes? Presumably you mean direct text children (rather than descendants), and by "non-empty" you mean "containing something other than whitespace". If so, try *[normalize-space(text()) != ""] (or with // at the start, depending on the context). -- Richard -- :wq Richard Tobin wrote: > Presumably you mean direct text children (rather than descendants), > and by "non-empty" you mean "containing something other than whitespace". > > If so, try > > *[normalize-space(text()) != ""] > > (or with // at the start, depending on the context). Yep, that worked, believe it or not. Thank you very much for the quick response! Yours, -mi Hello! I need to locate all nodes named "mp:date". For some reason, the $xml selectNodes {//mp:date} does not find any, but $xml selectNodes {...

removing a node from a node-set
Hi, I have a template "delete-node" with two arguments containing document fragments when called. I want to return a new document fragment which contains all nodes from argument 2 except the one which is contained in argument 1. The code currently looks like this: <xsl:template name="delete-node"> <xsl:param name="todelete" /> <xsl:param name="notprocessed" /> <xsl:copy-of select="$notprocessed[not(@id = $todelete/node/@id)]"/> </xsl:template> And an example for $todelete is: <node id='x'> ... </node> and $notprocessed contains a few of those nodes including the one with id 'x'. Is there a solution to this problem without using exsl:node-set()? ...

Looking A Nodes From Within Nodes
I've written a template that does some work on a subtree, but I want to replace the subtree that I originally worked on. How would I do this? Confused, Okay, here's an example: <node> <node> <node> </node> <node> </node> </node> <node> ** <node> </node> <node> </node> </node> ** </node> This is a binary tree full of "node" tags. Let's let I was working on the subtree starting at the node tag I've indicated by the **s. Let's say I've done my work on the subtree and I want to replace the subtree in this master tree with the one I've just changed. I also want to change the top level node tag (for example, updating the attribute tag). I can't do something like <xsl:element> <xsl:attribute counter="/node/@counter+1"/> <xsl:copy-of select="/node/*[position()=1]"/> <xsl:copy-of select="$outputofsubtreework"/> </xsl:element> Because, while it will work in this case, I don't know in advance how many levels the tree will have. Can anyone help me out here? :) Johnny *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! Ack! Sorry, I phrased the problem incorrectly. When I said "top level node tag", I meant to indicate the parent of the root of the subtree. So, in t...

[ciao-users] Relationship cardinality between Node Manager, Node App Manager and Node App
--0-378490922-1169777230=:38225 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, I would appreciatte if you could help me to clear some doubts about the DAnCE implementation: 1) Is there a different Node Application Manager for each plan UUID in one Node Manager? 2) How many Node Applications can exist for a particular Node Application Manager? I'm a bit confused about the relantionships between these artifacts and cardinalities of them. Thank you. Gab __________________________________________________ Fale com seus amigos de gra�a com o novo Yahoo! Messenger http://br.messenger.yahoo.com/ --0-378490922-1169777230=:38225 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi,<br><br>I would appreciatte if you could help me to clear some doubts about the DAnCE implementation:<br><br>1) Is there a different Node Application Manager for each plan UUID in one Node Manager?<br><br>2) How many Node Applications can exist for a particular Node Application Manager?<br><br>I'm a bit confused about the relantionships between these artifacts and&nbsp; cardinalities of them.<br><br>Thank you.<br><br>Gab<br><p>&#32;__________________________________________________<br>Fale com seus amigos de gra�a com o novo Yahoo! Messenger <br>http://br.messenger.yahoo.com/ --0-378490922-116977723...

Getting kind of abstract text snippets from text nodes
Hi everybody, I am about implementing a little search engine that searches a phrase over xml text nodes. I got that all working fine but what I want as the results is not the complete text of the textnode, I would like to make an abstract like result list (such output that you get with google searches. For eg .... I am the <b>substring</b> from a complete text node ... where "substring" is the search term. The problem is simple (I think): I want to extract all the text parts of the complete text node, where search searchterm is highlighted, surrounded by the text like 30 characters. I found an intersting post "cut down text" which is almost that what I am looking for, but there the text is just trimmed by x characters. Is anybody here, that has an "elegant" way to solve that or some hints that get me to the solution? I am not able to use regex (would be nice though) My parser is Sablotron so I am restricted to the functions that I get. (1.0). Any help is greatly appreciated. regards, Andreas W Wylach Think about dividing the text into three parts: before your target, the target itself, and after the target. Process each appropriately. If you want to report multiple instances within the same block of text, look at the standard examples of recursive text processing. -- () ASCII Ribbon Campaign | Joe Kesselman /\ Stamp out HTML e-mail! | System architexture and kinetic poetry "Andreas W. Wylach" <aw@ioc...

The difference between new node() and new node?
now, I define the struct following: struct node { bool match; node* child[27]; }; What's the difference between 1) node *Trie=new node(); and 2) node *Trie = new node; On Sep 5, 6:52=A0pm, remlostime <remlost...@gmail.com> wrote: > now, I define the struct following: > struct node > { > =A0 =A0 =A0 =A0 bool match; > =A0 =A0 =A0 =A0 node* child[27]; > > }; > > What's the difference between > 1) node *Trie=3Dnew node(); and 2) node *Trie =3D new node; no difference. On Sep 5, 12:52 pm, remlostime <remlost...@gmail.com> wrote: > now, I de...

PSTricks--Node relative to another node?
In PSTricks, how do I define the position of one node relative to another node? That is, suppose I have defined node A; how do I define node B say, to at the coordinates of A + (0.5*\n, -1), where \n is a counter in a multi-do. -- Professor Edward M. Reingold Email: reingold@iit.edu Department of Computer Science Voice: (312) 567-3309 Illinois Institute of Technology Fax: (312) 567-5067 Stuart Building, 228F 10 West 31st Street Chicago, IL 60616-3729 U.S.A. On 3 z=C3=A1=C5=99, 20:19, reing...@emr.cs.iit.edu (Edward M. Reingold) wro= te: > In PSTricks, how do I define the position of one node relative to another > node? =C2=A0That is, suppose I have defined node A; how do I define node = B say, to > at the coordinates of A + (0.5*\n, -1), where \n is a counter in a multi-= do. > -- I think that a clever combination of \hbox to 0 pt, \vbox to 0 pt, \hss, \vss, \hskip and \vskip (or \kern) can be used to resolve the problem. Simply put (to the same place as node A) box with zero width and zero height, vhich contains another node shifted ... units left- right and ... units top-bottom. Remember to clean spaces from line ends, if necessary. Robert. > > Professor Edward M. Reingold =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0Email: reing...@iit.edu > Department of Computer Science =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Voice: (312) 567-3309 > Illinois Institute of Technology =C2=A0 =C...

XSLT Child node of a specific node
Hi All, I would like to use XSLT to replace all <u> nodes that are children of a <b> node with a new <heading> node. Also, if the <b> node has no other children than remove it as well. For example: This would be some <b><u>Text</u></b>. It could <b> also maybe be like <u>this</u>...</b> to This would be some <heading>Text</heading>. It could <b> also maybe be like <heading>this</heading>...</b> I've been trying something like: <xsl:template match="//b[u]"> ... </xsl:template> with no success. Could someone point me in the right direction? Thanks! On 2006-10-20, gregmcmullinjr@gmail.com <gregmcmullinjr@gmail.com> wrote: > Hi All, > > I would like to use XSLT to replace all <u> nodes that are children of > a <b> node with a new <heading> node. Also, if the <b> node has no > other children than remove it as well. > For example: > > > This would be some <b><u>Text</u></b>. It could <b> also maybe be like ><u>this</u>...</b> > > to > > This would be some <heading>Text</heading>. It could <b> also maybe be > like <heading>this</heading>...</b> > > I've been trying something like: > ><xsl:template match="//b[u]"> > ... ></xsl:template&...

finding a list of nodes?
anyone know where i might find a file with all nodes (x3dv) and there default parameter values, or something i could copy/replace into that format. something like: .. .. Transform { metadata "" translation 0 0 0 scale 1 1 1 rotation 0 0 1 0 scaleOrientation 0 0 1 0 center 0 0 0 children [] } .. etc. BTW its for an editor plugin. > anyone know where i might find a file with all nodes (x3dv) and there default parameter values, or something i could copy/replace into that format. > something like: > . > . > Transform { > metadata "&...

Finding last node
Hi, I suspect this is a common question but I've read the FAQ and searched the archives and couldn't find it. In a script embedded in the body of the page I want to quickly find the last node that was created and appendChild nodes to it. I can't just use document.body.appendChild as the last node is likely to be a grandchild or great-grandchild of body. I know that I could document.write an element with an id and then getElementById but this slow and clunky, there must be a faster way, document.write() knows where to put its output. In case I've not made myself clear: [...ins...

cannot ssh from master node to slave node in cluster
PROBLEM ------- I was able to ssh from the master node (server) to a slave node (oscarnode1) previously. That means ssh was running properly previously. But now, I can't login to oscarnode1. I tried ping and it works perfectly. Meanwhile, I can still ssh from server to all other nodes successfully. How this happens is that I am running MPI programs (using MPICH) from the master node on the slave nodes using "mpirun -np 8 allgatherv2". Everything works fine until my program appear to consume too much on oscarnode1 (as seen from the /var/log/messages), forcing oscarnode1 to 'die'. Now, I can't 1) "ssh oscarnode1" 2) "mpirun -np 8 allgatherv2" (possibly caused by the 'dead' oscarnode1) output from /var/log/messages: ----------- Sep 7 20:19:09 oscarnode1 sshd(pam_unix)[2000]: session opened for user csyeo by (uid=0) Sep 7 20:20:56 oscarnode1 sshd(pam_unix)[2018]: session opened for user csyeo by (uid=0) Sep 7 20:21:17 oscarnode1 kernel: Out of Memory: Killed process 2001(allgatherv2). Sep 7 20:21:28 oscarnode1 sshd(pam_unix)[2000]: session closed for user csyeo Sep 7 20:21:42 oscarnode1 sshd(pam_unix)[2082]: session opened for user csyeo by (uid=0) ----------- Now, I try running ssh with -v option to debug, it is not responding after showing the below: ----------- [csyeo@server csyeo]$ ssh -v oscarnode1 OpenSSH_3.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f debug1: Reading configuration data /etc/ssh/ssh_config deb...

node and port alloclass, cannot add a node to the cluster
I've a 2node cluster and I'm having trouble adding a 3rd node. I've been reading the Cluster Systems manual for ages but some points are still a bit obscure. My cluster: +--------------------------------------------------------+-----------------+ | SYSTEMS | MEMBERS | +--------+--------------------------------+--------------+-------+---------+ | NODE | HW_TYPE | SOFTWARE | VOTES | STATUS | +--------+--------------------------------+--------------+-------+---------+ | OKAPI | AlphaServer DS10L 617 MHz | VMS V8.3 | 1 | MEMBER | | DONKEY | HP rx2620 (1.60GHz/3.0MB) | VMS V8.3 | 1 | MEMBER | +--------+--------------------------------+--------------+-------+---------+ and I want to add a 3rd node, also ds10l. All nodes boot from MSA1000, OKAPI from $1$DGA1: and DONKEY from $1$DGA2: I set up the MSA LUNs via CLI, so the above disks names are as they appear in VMS. I understand that number "1" in the above disk names is a port allocation class. Is that correct? I assigned both nodes a node allocation class, also 1. Do I need to do this if the port allocation is already in use? I run DECnet-Plus on both nodes. Now I want to add a second alpha node (LLAMA) to the cluster, also to boot from $1$DGA1. I run CLUSTER_CONFIG.COM from OKAPI, and specify that the page and swap files for the new cluster member will be on its local disk. At which point...

Get XML values from nodes and child nodes
Hi everybody. My XML file is: <Locatore> <NumeroProgressivo>001</NumeroProgressivo> <CodiceFiscale>CSTNDA69P90H523R</CodiceFiscale> <PersoneFisiche> <Cognome>CAST</Cognome> <Nome>NADIR</Nome> <Sesso>F</Sesso> <DataNascita>10091979</DataNascita> <ComuneNascita>RONCA</ComuneNascita> <ProvinciaNascita>BL</ProvinciaNascita> </PersoneFisiche> </Locatore> <Locatore> <NumeroProgressivo>002</NumeroProgressivo> <CodiceFiscale>PRSGRI74L29F443L</CodiceFiscale> <PersoneFisiche> <Cognome>PERISSI</Cognome> <Nome>IGOR</Nome> <Sesso>M</Sesso> <DataNascita>29071970</DataNascita> <ComuneNascita>MONTE</ComuneNascita> <ProvinciaNascita>SA</ProvinciaNascita> </PersoneFisiche> </Locatore> I need to get in ONE RECORD, both node value and his child nodes values, like this 001 | CSTNDA69P90H523R | CAST | NADIR | F | 10091979 | RONCA | BL 002 | PRSGRI74L29F443L | PERISSI | IGOR | M | 29071970 | MONTE | SA ..... With this: SELECT X.valore.query('NumeroProgressivo').value('.', 'VARCHAR(20)') as NumeroProgressivo, X.valore.query('CodiceFiscale').value('.', 'VARCHAR(16)') as CodiceFiscale FROM Tbulk CROSS APPLY Tbulk.nodes('Fornitura/Documento/S...

Web resources about - How to find non-existing nodes or nodes with no text - comp.lang.php

Justin Bieber Reunites With His Mother After Saying Their Relationship Was 'Pretty Non-Existing'
Justin Bieber Reunites With His Mother After Saying Their Relationship Was 'Pretty Non-Existing'

Resources last updated: 3/23/2016 6:20:15 PM