Skip to content

Jennal/phpxmlselector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Note

How to use select function

function select($str)

return

array, use selectSingle to return DOMElement

des

depends on $str

argument example

<?xml version="1.0"?>
<lover>
	<person id="jennal" age="22">
		<favorite>love xiaoyu</favorite>
	</person>
	<person id="xiaoyu" age="21">
		<favorite>love jennal</favorite>
	</person>
</lover>
 select("lover person") #will get an array of elements whose tagName is person
	 select("person") #could do the same thing
 select("#jennal") #will get an array of elements which has only one element, its id="jennal"
 select("person[age=22]") #will get an array of elements whose age="22"
 select("#jennal favorite") #will get an array of elements which are jennal's favorite
	 select("person[age=22] favorite") #could do the same thing

About

css selector on php

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages