What is the cost of parsing a large XML file using PHP with every page request?
I would like to implement custom tags in HTML.
<?xml version="1.0"?>
<html>
<head>
<title>The Title</title>
</head>
<body>
<textbox name="txtUsername" />
</body>
</html>
After loading this XML file into PHP, I search for user tags using XPath and manipulate or replace them.
Is it very expensive or acceptable? How about applying this on a large-scale website?
In the past, I also used XSLT for large sites, and it did not seem to slow down. It is somehow similar to XSLT, but manual.
source
share