Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7591369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:38:05+00:00 2026-05-30T20:38:05+00:00

I am trying to come up an adf xml file to post to a

  • 0

I am trying to come up an adf xml file to post to a crm.

so far I have been able to create this

<?xml version="1.0" encoding="UTF-8"?>

<adf version="1.0">

<prospect>

but need to create this

<?xml version="1.0" encoding="UTF-8" ?>

  <?adf version="1.0"?>

      <adf>

      <prospect>

I cant seem to find a way to create the tag. Need help.

I am trying to come up with and adf xml file using php dom the file should look like this

I m trying to come up with an adf xml document using the dom in php eg

  <?ADF VERSION="1.0"?> 
    <adf> 
      <prospect> 
        <id sequence="uniqueLeadId" source="name of promotion"></id> 
        <requestdate>2008-06-25T8:47:50</requestdate> 
        <vehicle interest="buy" status="used"> 
          <vin>2G4WF52L6S1472882</vin> 
          <year>1995</year> 
          <make>BUICK</make> 
          <model>Regal</model> 
          <stock>12886</stock> 
        </vehicle> 
        <customer> 
          <contact> 
          <name part="first" type="individual">Johnny</name> 
          <name part="last" type="individual">Customer</name> 
          <email>johnny@customer.com</email> 
          <phone type="home">857-485-7485</phone> 
          <phone type="work">867-586-7584</phone> 
          <phone type="mobile">979-685-9685</phone> 
        </contact> 
        <comments>What is your best price?</comments> 
      </customer> 
      <vendor> 
        <contact> 
            <name part="full">Name of lead provider or web-site</name> 
            <email>johnny@vendor.com</email> 
            <phone type="business">857-485-7485</phone> 
        </contact> 
      </vendor> 
    </prospect> 
</adf>

I am able to create the file only problem is creating the adf declaration on the xml. I am only able to create an element and assign an attribute to it eg

$root = $xmlDoc->appendChild($xmlDoc->createElement("adf"));

$root->setAttribute("version","1.0");
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T20:38:07+00:00Added an answer on May 30, 2026 at 8:38 pm
    $pi = $xmlDoc->createProcessingInstruction('adf', 'version="1.0"');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to come up with an interest point detection algorithm and this
I've been trying to come up with a way to create a 3 column
I've been trying to come up with a decent solution to this, but I
I've been trying to come up with a way to declare array constants in
I am trying to come up with a very fast algorithm for calculating this
I'm trying to come up with a simple and efficient way to create a
I'm trying to come up with a standard way to create multiple forms for
What I'm trying to come up is something that's expressed like this: var result
I've been trying to come up with a good design pattern for mapping data
Trying to come up with the logic and the standard way to do this.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.