Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Simplexml problem using php5

Options
  • 17-08-2004 9:04pm
    #1
    Closed Accounts Posts: 668 ✭✭✭


    I resently downloaded php5 as I've heard it's great with xml. Does anyone know how I could enter php variables in as attributes in an xml file. For example here's my xml file:

    <?xml version="1.0" ?>
    <tables>
    <table tid="table2A" booked="yes" />
    <table tid="table2B" booked="yes" />
    <table tid="table2C" booked="no" />
    <table tid="table2D" booked="no" />
    <table tid="table4A" booked="yes" />
    <table tid="table4B" booked="no" />
    <table tid="table4C" booked="no" />
    <table tid="table6A" booked="yes" />
    <table tid="table6B" booked="yes" />
    <table tid="table6C" booked="no" />
    <table tid="table6D" booked="no" />
    </tables>


    I'm tryin to individually enter in yes and no from the php as separate variables.

    Thanks


Advertisement