php domdocument xml troubles when <>& in items

Ruttybithab

New Member
I am trying to parse this XML:\[code\]<data><item field="abcdef '<>&" row="another text" /></data>\[/code\]I should get abcdef '<>& for getAttribute('field') and another text for getAttribute('row'). But if my data contains <>& etc XML is not parsed correctly. How can I parse it correctly?
 
Back
Top