TIDYNODE(3) 1 TIDYNODE(3)The tidyNode classINTRODUCTION
An HTML node in an HTML file, as detected by tidy.
CLASS SYNOPSIS
tidyNode
tidyNode
Properties
o
string$value
o
string$name
o
int$type
o
int$line
o
int$column
o
bool$proprietary
o
int$id
o
array$attribute
o
array$child
Methods
o
tidyNode tidyNode::getParent (void )
o
bool tidyNode::hasChildren (void )
o
bool tidyNode::hasSiblings (void )
o
bool tidyNode::isAsp (void )
o
bool tidyNode::isComment (void )
o
bool tidyNode::isHtml (void )
o
bool tidyNode::isJste (void )
o
bool tidyNode::isPhp (void )
o
bool tidyNode::isText (void )
PROPERTIES
o $value
-The HTML representation of the node, including the surrounding tags.
o $name
-The name of the HTML node
o $type
-The type of the tag (one of the constants above, e.g. TIDY_NODETYPE_PHP)
o $line
-The line number at which the tags is located in the file
o $column
-The column number at which the tags is located in the file
o $proprietary
-Indicates if the node is a proprietary tag
o $id
-The ID of the tag (one of the constants above, e.g. TIDY_TAG_FRAME)
o $attribute
- An array of string, representing the attributes names (as keys) of the current node.
o $child
- An array of tidyNode, representing the children of the current node.
+--------+--------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+--------------------------------------------+
| 5.1.0 | |
| | |
| | $line, $column and $proprietary were added |
| | |
+--------+--------------------------------------------+
PHP Documentation Group TIDYNODE(3)
Check Out this Related Man Page
DOMDOCUMENTFRAGMENT(3) 1 DOMDOCUMENTFRAGMENT(3)The DOMDocumentFragment classCLASS SYNOPSIS
DOMDocumentFragment
DOMDocumentFragmentextends
DOMNode
Properties
Methods
o public bool DOMDocumentFragment::appendXML (string $data)
Inherited methods
o public DOMNode DOMNode::appendChild (DOMNode $newnode)
o public string DOMNode::C14N ([bool $exclusive], [bool $with_comments], [array $xpath], [array $ns_prefixes])
o public int DOMNode::C14NFile (string $uri, [bool $exclusive], [bool $with_comments], [array $xpath], [array $ns_prefixes])
o public DOMNode DOMNode::cloneNode ([bool $deep])
o public int DOMNode::getLineNo (void )
o public string DOMNode::getNodePath (void )
o public bool DOMNode::hasAttributes (void )
o public bool DOMNode::hasChildNodes (void )
o public DOMNode DOMNode::insertBefore (DOMNode $newnode, [DOMNode $refnode])
o public bool DOMNode::isDefaultNamespace (string $namespaceURI)
o public bool DOMNode::isSameNode (DOMNode $node)
o public bool DOMNode::isSupported (string $feature, string $version)
o public string DOMNode::lookupNamespaceURI (string $prefix)
o public string DOMNode::lookupPrefix (string $namespaceURI)
o public void DOMNode::normalize (void )
o public DOMNode DOMNode::removeChild (DOMNode $oldnode)
o public DOMNode DOMNode::replaceChild (DOMNode $newnode, DOMNode $oldnode)
PHP Documentation Group DOMDOCUMENTFRAGMENT(3)
Hi,
I have two files:
file 1 has a list :
ABC_1024
ABC_4507
ABC_5589
ERT_4389
DDB_5507
file 2 has an array:
ABC_1011,ABC_1024,ABC_5670 DDB_4567 ERT_2345 January08
ABC_9099 DDB_9087 ERT_4567 March07
I need to go line by line in file 1... (2 Replies)
I have umpteen number of files containing HTML A tags in the below format
or
I want to find all the lines that contain the word Login=
I used this command
grep "Login=" *
This gave me normal lines as well which contain the word Login= for example, it returned lines which... (2 Replies)
Dear All,
I have a final output files as
736645|0|
13879|1|
495563|10|
127933|14|
4975|16|
49038|6|
53560|7|
135115|8|
178857|9|
Now I want to replace second column with respective tag as per the value (4 Replies)
Hi All,
Can you please guide me to search a string in a particular column of file and return the line number of the line where it was found using awk. As an example :
abc.txt
7000,john,2,1,0,1,6
7001,elen,2,2,0,1,7
7002,sami,2,3,0,1,6
7003,mike,1,4,0,2,1
8001,nike,1,5,0,1,8... (3 Replies)
Hi Guys,
My problem looks simple. I have a software-proprietary command (not linux) that provides an output, let's say 200 lines.
Unfortunately the dumb coders of the software did not include the option ">" or ">>" which allows to transfer output to a file, so I need a way to do that using some... (5 Replies)
HI,
i have to do some file validations on which i am receving daily.could any one please let me know how we can able to do validations on below scenarios
1) On Date column Ex If i am receving date in format of YYYYMMDD---- 20141118 --- here i have to check the date value 20141142 if the... (7 Replies)
Hi,
I have an array, that works well. But, I want to have it display every other line. Like so, 1, 3, 5, 7, etc, etc.
Here is the relevant code:
I'm sorry for the pastebin link. For some reason, I can't get the code to format properly with the code tags.
code tags work fine... everyone... (4 Replies)