Hi all,
I want to use namespaces in xml and parse them in PHP. Anyone know good documentation/sites/examples about this? I've googled a bit, but haven't really found what I was looking for.
I'll show what I want to do:
...
<table border="0">
<JK:IsLoggedIn>
<tr>
<td>Welcome <JK:variable name="username" /></td>
</tr>
</JK:IsLoggedIn>
<JK:IsNotLoggedIn>
<form name="login" action="whatever" method="post">
<tr>
<td>Username</td><td><input type="text" name="username"></td>
</tr>
<tr>
<td>password</td><td><input type="password" name="password"></td>
</tr>
<tr>
<td></td><td><input type="submit"></td>
</tr>
</form>
</JK:IsNotLoggedIn>
</table>
...
When this is uploaded a php file is generated based on that XML where the tags of the JK namespace will perform some special function (for example: display a variable, check if customer is logged in, etc...)