Jump to content

Need Parser that can read attributes of XML document...


chillyroll

Recommended Posts

Hello guys,
              I am looking for a parser in PHP that can return all the attributes of XML entities. I know how to read the XML Entities, but I have got a problem with reading attributes. So I will appreciate if you could give a parser that can return all the Entities and Attributes of respective entities as an array.

For e.g.:

<?xml version="1.0" ?>
<Controller>
      <NumberOfBoards>5</NumberOfBoards>
      <NumberOfKeypads>1</NumberOfKeypads>
      <QueueMode>N</QueueMode>
      <EntranceDelay on="5" off="5" />
      <Limits minLength="36" maxLength="800" />
      <Conveyor perSecond="6.3" perPulse="8.0" />
      <Roller relay="1" needsOrder="1">
            <RollerUp1>84</RollerUp1>
            <RollerDown>84</RollerDown>
            <RollerUp2>84</RollerUp2>
      </Roller>
</Controller>

This is a part of my XML document. I want to return all the Entites with their attributes as an array.

Thanks in advance.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.