zero-perfoliate
zero-perfoliate

Author Topic: One for the serious coders  (Read 447 times)

Offline chomps

  • New PHP Members
  • Posts: 1
  • Karma: +0/-0
One for the serious coders
« on: December 19, 2008, 12:11:49 PM »
I have been using php for a while now and have made a few scripts with mysql, xml, etc

I have a very different type of xml file here (very extended) and I want to make a form to read the xml file and then edit it. I am currently using an xml editor (stylus studio) to edit the xml file but i want to have a php web driven editor/crm type interface. the big problem i have here is the tags as they are not standard like most xml files. here is and example of one of the xml files:

*****************************************************************
<?xml version="1.0" encoding="UTF-8"?>
<botxml>
<menu idx="1" title="" description="some description">
   <content idx="1" title="feed title" bpv="false" charactersPerPage="1000" billing="bill_xb_0101">

Some content goes here...

</content>
   <menu idx="2" title="A menu title" bpv="false" description="some description">
      <form idx="1" title="A form title" billing="billing_code" description="" onSubmitSuccessMessage="Thank you! We have received your entry">
      <items>
        <choice param="selected" text="the form text">
            <option name="1" value="imgame" display=" I'M GAME"/>
        </choice>
          <input type="text" param="lipsid">LIPS ID</input>
        <input type="text" param="name">Please enter your name</input>
        <input type="numeric" param="mobile">Please enter your mobile number</input>
      </items>
      <submit>
        <httpget url="http://mydomain.com/action.php?choice=[selected]&amp;lips=[lipsid]&amp;name=[name]&amp;mobile=[mobile]" />
      </submit>
      </form>
</menu>
   <content idx="3" title="another header" bpv="false" charactersPerPage="1000" billing="billing_code">

blah...blah...blah...some content to be edited

</content>
******************************************************************

Does anyone know how i would be able to edit this. I want to specify if I want to insert a 'menu item' or a 'content item' or a 'form item' and then add the nessesary content to it. I have looked at many crm's out there but none of them can do what i want it to do. they all write xml files with their own tags (nodes). Please any help here would be gr8

thanx