Jump to content

xml_parse_into_struct error with <style> tags


zone12

Recommended Posts

when i parse this code sample:

<html><style>style</style><body><h1>blah<si zork="random" name="heading" /></h1><r><h3><si wallis="TeStInG" name="body" /></h3></r></body></html>

the style tag turns into a 'complete' instead of an 'open' and a 'closed' tag so printing it out parrot fashion gives me:

<html><style />style<body><h1>blahheading</h1><r><h3>body</h3></r></body></html>

the <si> tags are replaced with the name parameter.

now the style tag doesn't work properly and the document doesn't render. Has anyone else seen this error?

 

I have tried it with other tags, and it always seems to be the second tag that turns from two tags into one.

 

Any help would be much appreciated.

Link to comment
https://forums.phpfreaks.com/topic/177787-xml_parse_into_struct-error-with-tags/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.