PHP: parsing only namespaced xml

embococorkese

New Member
I'm trying to parse data like this:\[code\]<vin:layout name="Page" xmlns:vin="http://www.example.com/vin"> <header> {someText} <div> <!-- some invalid xml code --> <aas> <nav class="main"> <vin:show section="Menu" /> </nav> </div> </header></vin:layout>\[/code\]How can I parse data like this in PHP?I tried DOM but it not works, because of the malformed xml inside the root element. Can I tell the parser, that everithing without \[code\]vin\[/code\] namespace is text?
 
Back
Top