Sponsored Content
The Lounge What is on Your Mind? How do you prefer to read books? Post 302892838 by Neo on Friday 14th of March 2014 05:46:45 PM
Old 03-14-2014
I tend to only read books on the Kindle Paperwhite these days.
 

7 More Discussions You Might Find Interesting

1. New to Unix. Which books should I read?

An addition for UNIX books to read

I wanted to add this to the FAQ section on which UNIX books should be read, but the thread is closed. One of my all time favorites is now available for free download, "UNIX Text Processing": http://www.oreilly.com/openbook/utp/ It discusses many fundemental questions that I often see posted... (0 Replies)
Discussion started by: kduffin
0 Replies

2. UNIX for Dummies Questions & Answers

Books and such!

Hi guyes and girls. I am totaly new to this, so i need some advice on books and such. What book should i read if im going to get good in Unix? And if im going to read that book, what OS do i need for my first experience? And where do i get it? Some other things you folks can post is... (4 Replies)
Discussion started by: Seyedx
4 Replies

3. UNIX for Dummies Questions & Answers

why most of the people prefer linux nowadays y not solaris?

Hi, Anyone plz explain me, Now most of the people prefering linux over solaris. what are the main advantages in linux over solaris. Thanks muthulingaraja (3 Replies)
Discussion started by: muthulingaraja
3 Replies

4. UNIX for Dummies Questions & Answers

im very new to unix/linux can someone tell me the best books to read...

im very new to unix/linux operating system and having a hard time understanding the command ( grep, ls, echo and variables) is there any book that is simple to understand... after taking this unix/linux operating system i need to take unix operating system..can someone help me please!!! (1 Reply)
Discussion started by: 2071fox
1 Replies

5. Windows & DOS: Issues & Discussions

Do you prefer Quickbooks, Microsoft or another small business accounting software?

I am starting a small business. I need software to invoice and track payments, track income and expense and basically keep everything organized for tax time. I've read positive and negative on all small business accounting software, so now I'm really confused. Oh, my business is a service one, so I... (3 Replies)
Discussion started by: sunybck
3 Replies

6. What is on Your Mind?

Why older administrators prefer sendmail ?

I work in small size company and for mail server my chief :D says MS exchange is little baby. I saw MS can make a good product but big is question why older administrators like to use sendmail which doesn't have calendar. Is sendmail alfa and omega in mail servers ? (11 Replies)
Discussion started by: solaris_user
11 Replies

7. What is on Your Mind?

Do you read books with an ebook reader?

I bought a Sony PRS-650 Reader to read books and I'm loving it. For one thing, there are zillions of free books in epub format available for download for free. Many of them are out of print, so you would have to pay a high price to get a printed copy. Most current releases have to be paid for,... (15 Replies)
Discussion started by: KenJackson
15 Replies
DOMDOCUMENT.GETELEMENTBYID(3)						 1					     DOMDOCUMENT.GETELEMENTBYID(3)

DOMDocument::getElementById - Searches for an element with a certain id

SYNOPSIS
public DOMElement DOMDocument::getElementById (string $elementId) DESCRIPTION
This function is similar to "DOMDocument::getElementsByTagName" but searches for an element with a given id. For this function to work, you will need either to set some ID attributes with "DOMElement::setIdAttribute" or a DTD which defines an attribute to be of type ID. In the later case, you will need to validate your document with "DOMDocument::validate" or DOMDocument::$vali- dateOnParse before using this function. PARAMETERS
o $elementId - The unique id value for an element. RETURN VALUES
Returns the DOMElement or NULL if the element is not found. EXAMPLES
Example #1 DOMDocument::getElementById() Example The following examples use book.xml which contains the following: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE books [ <!ELEMENT books (book+)> <!ELEMENT book (title, author+, xhtml:blurb?)> <!ELEMENT title (#PCDATA)> <!ELEMENT blurb (#PCDATA)> <!ELEMENT author (#PCDATA)> <!ATTLIST books xmlns CDATA #IMPLIED> <!ATTLIST books xmlns:xhtml CDATA #IMPLIED> <!ATTLIST book id ID #IMPLIED> <!ATTLIST author email CDATA #IMPLIED> ]> <?xml-stylesheet type="text/xsl" href="style.xsl"?> <books xmlns="http://books.php/" xmlns:xhtml="http://www.w3.org/1999/xhtml"> <book id="php-basics"> <title>PHP Basics</title> <author email="jim.smith@basics.php">Jim Smith</author> <author email="jane.smith@basics.php">Jane Smith</author> <xhtml:blurb><![CDATA[ <p><em>PHP Basics</em> provides an introduction to PHP.</p> ]]></xhtml:blurb> </book> <book id="php-advanced"> <title>PHP Advanced Programming</title> <author email="jon.doe@advanced.php">Jon Doe</author> </book> </books> <?php $doc = new DomDocument; // We need to validate our document before refering to the id $doc->validateOnParse = true; $doc->Load('book.xml'); echo "The element whose id is 'php-basics' is: " . $doc->getElementById('php-basics')->tagName . " "; ?> The above example will output: The element whose id is 'php-basics' is: book SEE ALSO
DOMDocument::getElementsByTagName. PHP Documentation Group DOMDOCUMENT.GETELEMENTBYID(3)
All times are GMT -4. The time now is 08:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy