Hi im having trouble reading in a SOAP xml file into simplexml. Ive looked around and I think its because of the namespaces (soap:Body). Does anyone know a way around this?
A portion of the xml file
<?xml version="1.0" encoding="utf-8" ?> - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> - <soap:Header> - <UserCredentials xmlns="http://jobg8.com/postadvertheaders"> <Username>aaa</Username> <Password>aaa</Password> </UserCredentials> </soap:Header> - <soap:Body> - <PostAdvert xsi:noNamespaceSchemaLocation="PostAdvertSchema.xsd" xmlns="http://jobg8.com/messages" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <Adverts AccountNumber="" xmlns="http://jobg8.com/"> - <PostAdvert> <JobReference>2491778</JobReference> <ClientReference>DOL/Lon</ClientReference> <Classification>Sales & Marketing</Classification> <SubClassification>Other</SubClassification> <Position>Design Consultant in London</Position> - <Description> - <![CDATA[ DESIGN CONSULTANTS<br/><br/>Dolphin Bathrooms is the UK's market leader in fitted bathrooms and forms part of the HomeForm Group, along with Sharps<br/>Bedrooms, Moben Kitchens and Kitchens Direct. Calling on our customers at their homes for a pre-agreed appointment, you<br/>will conduct a professional design consultation, establishing the customers design requirements, measure and plan their<br/>bathroom, cost and complete the sale. We offer a high conversion rate within the industry and highest service levels.<br/><br/>Engaged in a self-employed capacity, our Design Consultants can work in a full or part-time capacity, following up on<br/>fully qualified leads supplied by our extensive showroom network.<br/><br/>Based from home, but with your own car, telephone and fax facilities, you will be supported by a local regional office.<br/>Previous sales experience is not required as you will benefit from a full induction focusing both on our product and on<br/>selling skills.<br/><br/>Training is on-going as we believe that with continuous development you will achieve the best possible results for<br/>yourself and the Company.<br/><br/>Suitable candidates will have:-<br/><br/> * excellent communication skills (you'll be confident and articulate)<br/><br/> * well presented<br/><br/> * be numerate (able to work in metric)<br/><br/> * be target driven (you'll be hungry for success)<br/><br/> * be self-motivated<br/><br/> In return you can earn OTE of £30 - 50K, paid on a commission basis each week, along with incentives including luxury<br/> holidays. We'll also lease you a sample kit and full stationery.<br/> ]]> </Description> <Location>London</Location> <Area>Not Specified</Area> <Country>United Kingdom</Country> <EmploymentType>Any</EmploymentType> <WorkHours>Not Specified</WorkHours> <VisaRequired>Applicants must be eligible to work in the specified location</VisaRequired> <PayPeriod>Annual</PayPeriod> <PayMinimum>30000.00</PayMinimum> <PayMaximum>50000.00</PayMaximum> <Currency>British Pound . GBP</Currency> <PayAdditional>£30,000 to £50,000 per year (OTE)</PayAdditional> <Contact /> <JobDetailsURL>http://www.jobg8.com/JobG8SearchFullView.aspx?jbid=1295&jid=2491778</JobDetailsURL> <ApplicationURL>http://www.jobg8.com/Application.aspx?e6aAMD8w0T2a7yXhmJEqOQq</ApplicationURL> <JobSource>Workthing</JobSource> <AdvertiserName>Dolphin Bathrooms</AdvertiserName> </PostAdvert>