A PClib demo presenting how to use PCML and relative DOM-like operation.
Input the file you'd like to parse when the demo starts up.
| Command | Discription |
|---|---|
find <selector> |
Output all elements that match the <selector> |
attr <key> [value] <selector> |
Add an attribute to all elements that match the <selector> |
add <tag> <selector> |
Append a new <tag> element to the first elements that match the <selector> |
print <selector> |
print elements that match the <selector> and it's all children |
version |
Query PCL's version |