Results 1 to 1 of 1
  1. #1
    Join Date
    Mar 2011
    South Carolina

    PHP SimpleXML Help

    Hey guys, I'm new here but I'm really hoping I can still get some help. I am trying to pull data from an XML string using PHP's SimpleXML. I have looked everywhere, but have been unable to find any specific help on how to target information within the string. Any help you guys could offer would be greatly appreciated.

    Here's some sample XML data:
    <?xml version="1.0" encoding="ISO-8859-1" ?> 
    <PhysicalProperty xmlns:xsi="" xmlns:xsd="" xmlns:MITS="">
    <Management id="2604">
      <Name>Mills Properties (MO)</Name> 
    <Property managementID="2604">
    <Identification type="apartment" rentalType="">
      <MarketingName>BROOKSIDE MANOR</MarketingName> 
      <OwnerLegalName /> 
      <Address1>1200 East Grand Ave.</Address1> 
    My question is: how do I target information beneath the top levels of the string? When I use getName(), I see only the top three levels: PhysicalProperty, Management, and Property. Given the information above, how would I return the "Address1", "City", and "Zip" information inside of the "Address" level using PHP's SimpleXML? I'm sure it's very simple and that I just don't know how to word my searches appropriately, but I'm hoping you guys can help! Thanks in advance for everything!
    Last edited by wboling; 03-27-2011 at 09:53 PM. Reason: clarification

Similar Threads

  1. Replies: 33
    Last Post: 07-25-2011, 01:01 PM
  2. SimpleXML
    By RivaCom in forum Programming Discussion
    Replies: 1
    Last Post: 01-07-2011, 05:28 PM
  3. PHP: Custom WHMCS billing gateway or PHP script - API included
    By omega36 in forum Employment / Job Offers
    Replies: 1
    Last Post: 11-29-2007, 03:01 PM
  4. php safe_mode on and /usr/lib/php/DB.php error - pear
    By nand in forum Hosting Security and Technology
    Replies: 1
    Last Post: 05-03-2005, 02:44 AM
  5. Replies: 1
    Last Post: 02-15-2005, 07:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts