So now i have a XML problem...
I have XML:
- <Info> - <map> - <element> <key>LINKS_TYPE</key> - <value> - <list> <element SortOrder="0" Text="Specification" Source="http://eu.computers.toshiba-europe.com/cgi-bin/ToshibaCSG/jsp/productPage.do?service=EU&PRODUCT_ID=150493" InfoTypeId="2" /> </list> </value> </element> - <element> <key>VENDORS_LINKS_TYPE</key> - <value> <list /> </value> </element> - <element> <key>BENIFITS_FEATURES_TYPE</key> - <value> <list /> </value> </element> - <element> <key>MARKETING_TYPE</key> - <value> - <list> <element SortOrder="0" Text="The Satellite A300 has the widest range of models available so you get to choose the machine configurations that are perfect for your needs and your pocket. The laptop features a new, striking and highly durable design using the Toshiba special glossy Fusion finish. A fully integrated Touch Pad ensures maximum user comfort." Source="" /> </list> </value> </element> </map> </Info>
And I need to extract this text from tag:
<element SortOrder="0" Text="The Satellite A300 has the widest range of models available so you get to choose the machine configurations that are perfect for your needs and your pocket. The laptop features a new, striking and highly durable design using the Toshiba special glossy Fusion finish. A fully integrated Touch Pad ensures maximum user comfort." Source="" />
I am using code:
$doc = new DOMDocument();
$doc->load( 'artikli/test.xml' );
$books = $doc->getElementsByTagName( "Info" );
foreach( $books as $book )
{ ... etc....
But i can't get pass
<key>LINKS_TYPE</key>... so please help me
Thank you!

New Topic/Question
Reply


MultiQuote


|