06-01-2012
I thought the original thread title was more appropriate.
This User Gave Thanks to jgt For This Post:
6 More Discussions You Might Find Interesting
1. Solaris
hi everybody
i'm just recreuted as UNIX system admin...
please tell me from where do i have to begin...
best regards (8 Replies)
Discussion started by: hmaiida
8 Replies
2. Solaris
Tape: Need tape library help please. Need to configure a remote admin card in the L100. Anything helpful.....thxs (2 Replies)
Discussion started by: uwinix77
2 Replies
3. Post Here to Contact Site Administrators and Moderators
i left a message for admin in the wrong thread.. it is in the what is on your mind thread since i can't move it or delete it.. i thought I would mention that I meant it to be in this thread..
sorry about the mistake..
thanx for your patience moxxx68 (3 Replies)
Discussion started by: moxxx68
3 Replies
4. What is on Your Mind?
I'm currently a Windows admin and have wanted to jump ship to the *nix side for a while now. I've been studying both through an lpic level 1 manual as I have time (focusing on debian), and a solaris 10 cert book. The problem is I only have a handful of hours a week to study, and my current job... (3 Replies)
Discussion started by: bobwilson
3 Replies
5. War Stories
I was reading this thread of admin_xor Prize of being an Admin and thought will share this experience of mine which is kind of opposite to what he did - I didn't tell anybody what happened :D
We were porting one of the subsystem from Solaris to Linux. As part of that we developed many wrapper... (23 Replies)
Discussion started by: ahamed101
23 Replies
6. What is on Your Mind?
I am planning to choose my career as Unix/Linux Admin or a DBA. But I have come to know from forums and few admins like the job will be 24/7. I have few questions on that.
Can we get "DAY" shifts in any one of the admin Job ?
Can't we have shift timings in any company ?
Eventhough the... (7 Replies)
Discussion started by: Jacktts
7 Replies
LEARN ABOUT PHP
domdocument.savexml
DOMDOCUMENT.SAVEXML(3) 1 DOMDOCUMENT.SAVEXML(3)
DOMDocument::saveXML - Dumps the internal XML tree back into a string
SYNOPSIS
public string DOMDocument::saveXML ([DOMNode $node], [int $options])
DESCRIPTION
Creates an XML document from the DOM representation. This function is usually called after building a new dom document from scratch as in
the example below.
PARAMETERS
o $node
- Use this parameter to output only a specific node without XML declaration rather than the entire document.
o $options
- Additional Options. Currently only LIBXML_NOEMPTYTAG is supported.
RETURN VALUES
Returns the XML, or FALSE if an error occurred.
ERRORS
/EXCEPTIONS
o DOM_WRONG_DOCUMENT_ERR - Raised if $node is from another document.
CHANGELOG
+--------+-------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+-------------------------------+
| 5.1.0 | |
| | |
| | Added the $options parameter |
| | |
+--------+-------------------------------+
EXAMPLES
Example #1
Saving a DOM tree into a string
<?php
$doc = new DOMDocument('1.0');
// we want a nice output
$doc->formatOutput = true;
$root = $doc->createElement('book');
$root = $doc->appendChild($root);
$title = $doc->createElement('title');
$title = $root->appendChild($title);
$text = $doc->createTextNode('This is the title');
$text = $title->appendChild($text);
echo "Saving all the document:
";
echo $doc->saveXML() . "
";
echo "Saving only the title part:
";
echo $doc->saveXML($title);
?>
The above example will output:
Saving all the document:
<?xml version="1.0"?>
<book>
<title>This is the title</title>
</book>
Saving only the title part:
<title>This is the title</title>
SEE ALSO
DOMDocument::save, DOMDocument::load, DOMDocument::loadXML.
PHP Documentation Group DOMDOCUMENT.SAVEXML(3)