parse xml file in php

takdll

New Member
How to parse this type of files in phpI have tried using\[code\]<?php$xml ="office.xml";// get first book title$title=$xml->featureMember->AA_OFFICE;// show titleecho $title;echo '<br/>';?>\[/code\]if iam using gml:featuremember instead of featuremember i am getting an error in syntaxif i use featuremember iam getting ) Notice: Trying to get property of non-object\[code\]<gml:boundedBy><gml:null>unknown</gml:null></gml:boundedBy><gml:featureMember><kgp:AA_OFFICE fid="AA_OFFICE.1"><kgp:the_geom><gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#32645"><gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" ">643630.3815,2498825.0741</gml:coordinates></gml:Point></kgp:the_geom><kgp:Name>MANMARK EXPORT PVT LTD</kgp:Name><kgp:Type/><kgp:Plot_No>55</kgp:Plot_No><kgp:Block_Name>AA</kgp:Block_Name></kgp:AA_OFFICE></gml:featureMember>\[/code\]
 
Back
Top